Improve company productivity with a Business Account.Sign Up

x
  • 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
The 14th Annual Expert Award Winners

The results are in! Meet the top members of our 2017 Expert Awards. Congratulations to all who qualified!

 
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
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying 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