Szukaj na tym blogu

wtorek, 21 stycznia 2014

Reboot remote computers

Tested psshutdown.exe and there is a problem on 64bit machines - the message for users is not displayed. This is known case (http://forum.sysinternals.com/psshutdown-no-message-displayed_topic21119.html) Good to know before trying to do it on production:)

We can workaround this using
PsExec.exe -d -i 1 -u admin -p P@ssw0rd \\10.176.6.171 "c:\windows\system32\shutdown.exe" -r -f -t 3600 -c "Your computer will reboot within one hour. You can reboot it by Yourself now if You are ready"

PsExec.exe -d means non-interactive
PsExec.exe -i is the number of session in which message will be displayed (users usually are loged in to session 1 also if they are connected via RDP)

I tested it on Windows 7 both 32 and 64 bits machines.

Brak komentarzy:

Prześlij komentarz