Shutdown / Reboot Windows von der Remote Shell

Here’s a second example: you work from home with your spouse, but have different offices in the house. In your office, you need to shut down your spouse’s computer (computer name “UPSTAIRS”) because a lightning storm is rolling in and you want to be on the safe side. You think your spouse isn’t currently using the computer, but you can’t be sure. Here’s a shutdown command that you could initiate on your own PC:

This command shuts down the computer (-s), forces running applications to close (-f), designates the remote PC by name (-m \\UPSTAIRS) because you’re executing the command on your own PC, gives a time delay of 60 seconds (-t 60), and provides a descriptive message (-c) that will appear on your spouse’s computer to notify them of the impending shutdown.

Shutdown Command Parameters

Parameter Function
-s Shuts down the comptuer.
-r Reboots the computer.
-f Force-close all running applications.
-m \\Computer Specifies a specific computer on the network that you want to shut down or reboot. Absent this parameter, the command affects only the local PC on which it is run.
-t xx Sets a delay (xx seconds) before the specified operation commences.
-c „message“ Add your own text inside the quotations to provide remote users with a message about why and when their PC will shut down or reboot.
/a Aborts a shutdown or restart if used during the (-t) delay period.
/h Hibernates the computer.
/? Displays the full help document with all commands.

4. Oktober 2015 2746 Anonymous  General
Total 0 Votes:

Tell us how can we improve this post?

+ = Verify Human or Spambot ?