Link to home
Start Free TrialLog in
Avatar of jtcomin
jtcomin

asked on

Force Restart

I am trying to restart the server remotely using the command window.  shutdown /f only logs out the user and does not restart the server
Avatar of CaffeinatedTech
CaffeinatedTech

sutdown /f /r /t 0

doesn't work?
If I could spell shutdown properly :P
Avatar of jtcomin

ASKER

shutdown /r - I get the error message that the machine is locked and I need to force a restart
shutdown /f - only logs me out and does not restart the server
shutdown /t 0 - nothing happens
Avatar of jtcomin

ASKER

I searched and found the command to do it before but I never wrote it down and I have spend a couple of hours trying to find it again with no luck.
try shutdown /?
it tells you that

No args    Display help. This is the same as typing /?
/f         Force running applications to close without forewarning users

so you've just logged everyone off and killed running applications. without actually shutting down
i thought you had it. anyway these are the two that you need from the help

/f         Force running applications to close without forewarning users
/s         Shutdown the computer

/r         Shutdown and restart the computer
ASKER CERTIFIED SOLUTION
Avatar of CaffeinatedTech
CaffeinatedTech

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jtcomin

ASKER

I put them all together and it worked!  Thanks!