Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do you remotely shutdown an XP host from a linux machine? I know that you can use

shutdown /s /f /m \IP_GOES_HERE

From windows, but how would you do that from linux? (wine does not port the shutdown command)

share|improve this question

Does the psshutdown tool from SysInternals (nor part of MS) work under Wine? Probably not, but might be worth a try.

Failing that you could install cygwin's OpenSSH port (or some other SSH server service) and use that to login and call Windows' own local shutdown command - this would be a one line command/script.

share|improve this answer
I'm playing with psshutdown now! – brice Feb 10 '10 at 22:47
And it doesn't seem to work form wine – brice Feb 11 '10 at 0:49
up vote 1 down vote accepted

psshutdown doesn't work from wine for some reason.


net rpc shutdown -I -U username%password

works if all the proper steps have been taken

share|improve this answer

I used the psshutdown, but had a different method. I had Outlook open on the machine 24/7 and if it received an email from my email account only, with a random set of words in it, the rule would run psshutdown

you could try this you could even use this mthod to shiut the computer off from a text message! :)

share|improve this answer

If you create a shortcut link to this from the windows machine you can simply do it that way.

Put this in the Target text box: C:\WINDOWS\system32\shutdown.exe -s -f -c "Shutdown!" -t 10

Put this in the Start in text box: C:\Windows\System32

share|improve this answer

Your Answer


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.