using PSExec to run Reg ... Add

M

MatthewBrown

Hello,


I believe the line is:

psexec -u user -p pass reg add
"HKCU\Software\Meditech\Wrkstn\MEDITECH\" /v I /t REG_SZ /d
meditecha.domain.com /f


But that fails. Then I tried to run
reg add HKCU\Software\Meditech\Wrkstn\MEDITECH /v I /t REG_SZ /d
meditecha.domain.com /f

and got "too many command line parameters." Note that I expected to
get Access Denied, as the user doesn't have local administrative
rights.


Anyone have any ideas?


Thanks,

Matt
 
P

Pegasus \(MVP\)

I recommend that you run reg.exe locally, before using
psexec to invoke it on some other machine.

I suspect that reg.exe, same as regedit.exe, does not
report privilege problems. You may have to supply
domain credentials with psexec.exe rather than local
ones.

Lastly I suggest you state which version of reg.exe
you use. Each has its own set of switches.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top