Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Windows XP, is there a way to reboot a remote system without using shutdown.exe?

Target system is also Windows XP, and access via RDP is available. I do have local administrative privileges on the box, but for some reason can't run shutdown.exe.

I know certain tasks such as logoff and others can be done with rundll32, but I'm not sure what (if any) the syntax would be to use it for shutdown or reboot.

share|improve this question
    
Try shutdown /? that solved all my questions about this ;) –  Michael K May 18 '11 at 15:06
    
@Michael The title says "without using shutdown.exe" ;) –  slhck May 18 '11 at 15:07
    
oh, sorry for that, my thoughts were blocked a bit –  Michael K May 18 '11 at 15:08

3 Answers 3

You can run shutdown from your own machine, so it shouldn't matter if it's available on the remote machine or not.

shutdown \\computername /r /t:5 "Your computer is shutting down in 5 seconds. Bye." /y /f

/r is for reboot
/t:X is "Shutdown in X seconds"
/y is "Answer yes to everything"
/f is "Force"

share|improve this answer
    
Far as I know, this still requires permissions to execute the command on the remote computer - which for some odd reason I seem to lack. –  Iszi May 18 '11 at 23:12

Supposedly, there was a remote terminal shutdown utility in windows 2000 that might work on win XP. It's called TSSHUTDN. There is also a sysinternals tool called Psshutdown. I've added in some Google results below.

Windows KB Article on it

XP Pro Documentation Hosted by Microsoft

Tech net article talking about different shutdown tools

I have not tested any of these solutions.

Hope this helps

share|improve this answer

You can reboot the computer by creating and running this VBScript on the remote computer:

set objwmiservice = getobject("winmgmts:{impersonationLevel=impersonate,(Shutdown)}\\.\root\cimv2") 
set coloperatingsystems = objwmiservice.execquery ("select * from Win32_OperatingSystem") 
for each objoperatingsystem in coloperatingsystems 
    objoperatingsystem.Win32Shutdown(2) 
next

Script source, Win32Shutdown documentation

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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