C:\PSEXEC \\mechaflash -u admin -p admin cmd.exe /C "REG ADD HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v WUServer /t REG_SZ /d http://WSUS_Server:8530 /f && REG ADD HKLM\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate /v WUStatusServer  /t REG_SZ /d http://WSUS_Server:8530 /f && SHUTDOWN -r -t 00"

The command stated that it completed successfully, and the remote machine rebooted. However, the registry changes did not actually take place.

The cmd commands were tested locally and work fine.

Is this a privilege issue?

link|improve this question

Where does the limited account user come in? – Harry Johnston Dec 5 '11 at 22:58
Is it possible that group policy is overwriting your settings? – Harry Johnston Dec 5 '11 at 22:59
The limited user is logged in on the remote computer. However, I'm using the administrator credentials for the computer, but not getting the desired results – Mechaflash Dec 5 '11 at 23:40
OK, it shouldn't make any difference who is logged in on the remote computer. I think you need to look elsewhere, e.g., group policy. – Harry Johnston Dec 6 '11 at 1:27
Trying using the -s flag to execute as system? that would definitely bypass any limited-user issues – arcyqwerty Dec 6 '11 at 6:23
show 5 more comments
feedback

1 Answer

up vote 2 down vote accepted

It turns out that the command was in fact working as expected, but the registry changes were being overwritten by group policy.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.