Server Fault is a question and answer site for system and network administrators. 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

I use a call of shutdown.exe to reboot machines having different versions of Windows installed.

For Windows XP the command is:

shutdown.exe -r -f -t 01

For other versions of Windows I use:

shutdown.exe /L /R /C /Y /T:1

Now it seems, that the second command won't work on Windows XP. Does anybody know which versions of Windows support slashes and which dashes?


This is not an issue of wrong parameters. Here is a printout from an affected machine (German installation of Windows XP):

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\shutdown.exe /L /R /C /Y /T:1
Syntax: shutdown.exe [-l | -s | -r | -a] [-f] [-m \\Computer] [-t xx]
             [-c "Kommentar"] [-d up:xx:yy]

share|improve this question
up vote 1 down vote accepted

Tested on both XPSP3 and Win7

shutdown.exe -r -f -t 0 and shutdown.exe /r /f /t 0 appear to be functionally identical, either dash or slash will work.

Neither XP/7 (US-en) lists the "Y" switch as an option however. Could this be your problem, or is this a feature of the the localized implementation of shutdown?


Additional testing suggests that logoff /L and restart /R are mutually exclusive options.

share|improve this answer
I think that the '/Y' parameter was introduced because on some machines under NT a proprietary shutdown.exe was used, which featured this parameter. – Bertolt Feb 23 '10 at 21:06

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.