• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 4101
  • Last Modified:

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
0
jtcomin
Asked:
jtcomin
  • 3
  • 3
  • 2
1 Solution
 
CaffeinatedTechCommented:
sutdown /f /r /t 0

doesn't work?
0
 
CaffeinatedTechCommented:
If I could spell shutdown properly :P
0
 
jtcominAuthor Commented:
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
0
Receive 1:1 tech help

Solve your biggest tech problems alongside global tech experts with 1:1 help.

 
jtcominAuthor Commented:
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.
0
 
imitchieCommented:
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
0
 
imitchieCommented:
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
0
 
CaffeinatedTechCommented:
Yeah all of the arguments into the one command like in my first post

shutdown /f /r /t 0

This will force a restart immediately.  The 0 is the countdown timer if you want to warn users, you can set it to like 500, all users will get a warning box with a countdown.
0
 
jtcominAuthor Commented:
I put them all together and it worked!  Thanks!
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

  • 3
  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now