Welcome Guest ( Log In | Register )




Collapse

Top Submitters

· NickTheGreek (127)
·  (127)
· www.yourforum.gr (61)
· nickpar (20)
· Big (1)

Collapse

Random Tutorials

How to secure /tmp

Tutorial name: How to secure /tmp
Submitted by: NickTheGreek


Collapse

Announcments


Welcome to Tutorial System!


Print this Tutorial 

Force A Windows Remote Reboot

Tutorial Information
Name: Force A Windows Remote Reboot
Submitter: NickTheGreek
Category: Windows Tutorials
Submitted: 10 Sep 2015
Updated: 10 Sep 2015
Views: 257
Rating: This tutorial is unrated.
Force A Windows Remote Reboot
View All Tutorials By This Member
View Discussion Topic
Description:
Here¢s a useful tip if you¢ve ever tried performing a remote reboot of a server or workstation running Windows and had the reboot get hung up.
Tutorial Instructions
Here¢s a useful tip if you¢ve ever tried performing a remote reboot of a server or workstation running Windows and had the reboot get hung up.

First, some background: you can remotely reboot a machine with the following command:

CODE
shutdown /r /m \\computername


Of course, you need to be running as a user with admin rights on the remote machine. Typically, I would follow this with a ping -i computername to confirm the remote machine has rebooted.

Normally, after a minute or two, you¢ll see the machine stop responding to ping, and then eventually come back online. Occasionally, though, if the remote machine is having issues, the reboot can get hung up. If you try the command again, you will get the error: A system shutdown is in progress.(1115).

What now? Well, you can try cancelling the reboot with shutdown /a /m \\computername and initiate it again. You might try adding the /f switch to the shutdown /r command, which forces all running applications to exit rather than allowing them to save their data. But what if that doesn¢t work either?

PSKill to the rescue. This tool is part of the excellent PSTools suite. Just unzip them to a folder in your path (like C:\Windows). We¢re going to take advantage of a useful property of the Windows kernel: it depends on certain processes to be running at all times, and if one of these processes is terminated, the system will immediately reboot. One of these processes is winlogon.exe. Just issue this command:

CODE
pskill \\computername winlogon


Note that this is nearly the equivalent of pulling the plug on the machine. I wouldn¢t recommend using it unless a regular reboot has failed. And of course if the machine isn¢t responding to RPC, then nothing is going to work and you¢ll just have to walk over there and mash that power button.

Source: https://www.ryansteele.ca/2011/01/21/unstick-a-remote-reboot/
Comments
There have been no comments made as of yet. Why not be the first?



1 user(s) active
Active Users 1 guests, 0 members, 0 anonymous members
Sorted by Last Click
Quick Stats
Board Stats There have been a total of 244 tutorials in 6 categories and 0 sub-categories with 117051 views and 24 comments
The newest tutorial is How to Add “Move to” or “Copy to” to Windows 10¢s Context Menu by NickTheGreek

RSS Lo-Fi Version Time is now: 20th June 2025 - 11:22 PM
Skin and Graphics by Dan Ellis and Anubis. Hosting by Forums & More © 2005-2011.
InvisionGames - Your #1 Arcade Games Repository | AllSigs - Signatures for all | Rock Band + Guitar Hero = RockHero ! | The Remoters - Remote Assistance | FileMiners - You ask, We find