![]() |
creating a reg key using psexec |
Post Reply
|
| Author | |
Tacobell2000
Newbie
Joined: 10 April 2007 Location: Canada Online Status: Offline Posts: 2 |
Post Options
Quote Reply
Topic: creating a reg key using psexecPosted: 11 April 2007 at 9:09am |
|
Thank you very much. It works beautifully.
Tacobell2000
|
|
![]() |
|
Karlchen
Senior Member
Joined: 18 June 2005 Location: Germany Online Status: Offline Posts: 5121 |
Post Options
Quote Reply
Posted: 10 April 2007 at 2:29pm |
|
Good evening, Tacobell2000.
Welcome aboard.
Telling from the 2 commandlines you give us, I tend to assume you may have misinterpreted the explanation on how the psexec commandline works. - No problem, because that's what the forum is here for. I think you might start by going through this thread carefully: Deleting files using PsTools. Though DiscipleDOC's starting point seems to be quite different from yours, the goal is more or less the same. Follow the instruction given in that thread and feel free to use this final version of regrun.bat as a template and modify it to match your environment and your needs. HTH, Karl |
|
![]() |
|
Tacobell2000
Newbie
Joined: 10 April 2007 Location: Canada Online Status: Offline Posts: 2 |
Post Options
Quote Reply
Posted: 10 April 2007 at 1:56pm |
|
Hello, I have been asked to change a registry entry on all computers in the domain. There are about 1600 computers.We do not have SMS nor are we planning to buy it. I must do a registry change using psexec. The key I must modify is a critical key that users do not have access to, I’ve downloaded and installed PsExec v.182. I wrote a bat file that says this: psexec @listPC.txt -u DOMAIN\dom_admin -p password -low -c command.bat >> err.txt 2>>log.txt….in the command.bat file I have written this: psexec =listPC.txt "c:\windows\regedit -s \\c004392\c$\temp\temp2\java.reg" >> err.txt 2>>log.txt…….in the listPC.txt I have written the pcNames as c001234 and so on. The problem is when I double click the 1st bat file it executes and gives me an error message stating that: command.bat exited on c002763 with error code 1. And the .reg file is: Windows Registry Editor Version 5.00 [HKEY_LOCAL_MACHINE\SOFTWARE\JavaSoft\Java Deployment\Policy] This works by double clicking on it. Any help would be greatly appreciated. Tacobell2000 |
|
![]() |
|
Post Reply
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |