


It was working before from a Windows 7 machine too but since I get a new imaged windows 7 machine it dont work anymore for a WinXP nor 7. # Abmelden des Benutzers am lokalen und Remote PC On a Windows XP machine the following code works fine, for the local machine when my tool isn't connected to a remote PC and when it is it works for the remote machine (Windows XP and 7): I have a GUI admin tool where I added this code too. I have some strange behaviour too with this. for more information about parameters do "C:\SysinternalsSuite>PROG -?" Remember: within an domain obviously you've to use an performing user with sufficient rights, mostly just a admin user, or nothing but an error will happen. Sysinternals - SHUTDOWN.EXE exited on PC0001 with error code 0. PsExec v1.98 - Execute processes remotely psexec with remote pc's own shutdown.exe:Ĭ:\SysinternalsSuite>psexec.exe \\PCNAME -u dom\adminuser -p password SHUTDOWN.EXE -f -r Sysinternals - PC0001 is scheduled to reboot in 00:00:20. PsShutdown v2.52 - Shutdown, logoff and power manage local and remote systems Note: only logoff never work in any way, but at least a clean (forced) reboot does the same, doesn't it?Ĭ:\SysinternalsSuite>psshutdown.exe -f -r -u dom\adminuser -p password \\PCNAME Well, the simplest way is using the ps-tools from former sysinternal, now owned by M$.Įither you're using psshutdown.exe, or psexec.exe with an reference to shutdown.exe on the remote pc.
