Sysinternals Homepage
Forum Home Forum Home > Sysinternals Utilities > PsTools
  New Posts New Posts RSS Feed: creating a reg key using psexec
  FAQ FAQ  Forum Search   Calendar   Register Register  Login Login

creating a reg key using psexec

 Post Reply Post Reply
Author
Message Reverse Sort Order
Tacobell2000 View Drop Down
Newbie
Newbie


Joined: 10 April 2007
Location: Canada
Online Status: Offline
Posts: 2
Post Options Post Options   Quote Tacobell2000 Quote  Post ReplyReply Direct Link To This Post Topic: creating a reg key using psexec
    Posted: 11 April 2007 at 9:09am
Thank you very much. It works beautifully.
 
Tacobell2000
Back to Top
Karlchen View Drop Down
Senior Member
Senior Member
Avatar

Joined: 18 June 2005
Location: Germany
Online Status: Offline
Posts: 5121
Post Options Post Options   Quote Karlchen Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
Tacobell2000 View Drop Down
Newbie
Newbie


Joined: 10 April 2007
Location: Canada
Online Status: Offline
Posts: 2
Post Options Post Options   Quote Tacobell2000 Quote  Post ReplyReply Direct Link To This Post 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]
"EnableSecureStaticVersioning"=dword:00000000

 

This works by double clicking on it.

 

Any help would be greatly appreciated.

Tacobell2000

Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down