Command Optimization

How To Shutdown A Computer Remotely Using CMD In Windows 7

Shutting your computer down ‘remotely’ can come in handy at times. There are times when you are in a rush and shutting down your system is too much of a hassle.

But before we get to how you can remote control your PC, here are the basics that you need to know first.

Also Read: How to Increase Virtual Memory in Windows 7

To use this feature, the Remote Registry service must be enabled on the remote computer. To enable Remote Registry, follow these steps:

Before using Command Prompt (CMD), you should know some of the basic commands. Here are some tabled commands that you can learn easily.

     PARAMETER                                 FUNCTION
-s        Shuts down the computer.
-r Reboots the computer.
-f Force-close all running applications.
-m \\Computer’s name Identify a specific computer on the network that you want to shutdown or reboot.
/h Hibernates the computer.
/? Displays the full help document with all commands.
-t xx It will wait a certain amount of time in seconds before shutting down or restarting
-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.

Now that you know the basic commands, you can use CMD to take control of your remote PC and shut it down whenever you want.

This command will shut down the specific computer(s). Do remember that you have to type computer’s official name instead of ‘computername’ in the above command.

Also Read: Advanced System Protector: Your Last Resort Against Malware

Saving your work before shutting down the computer

Let’s say the computer’s name is ‘worklaptop’ and you have to save your work before shutting down the computer. In that case, use this command:

shutdown -s -f -m \\ worklaptop -t 60 -c “Shutting down the computer. Save work and close apps.”

 

This command will make the computer with name “worklaptop” begin a 60-second countdown before it shuts down and displays the message “The computer will restart, please save all work.” on the screen.

Also Read: 8 Best Disk Partition Software for Windows 2017

So, you can now use commands on Command Prompt and remotely shut down your computer and protect it from data and security breaches.

Want more such tips and tricks. Let us know what would you like to know about in the comments section below.

Leave a comment