Skip to main content

Shutdown Your Computer or a Remote PC via Command Prompt

Most of us shutdown our computers using the power button given in the Start menu. Some of us use the physical power button on our machines. Very few people actually use other means of shutting down a computer and even less is the number of people who use the command prompt to shutdown a computer.

A reason for this is that most of us don't know that the command prompt can be used to not only shutdown, restart or log off our computer instantly but also to shutdown a remote computer provided you have administrative access. It can also be used to hibernate a computer and give a comment containing the reason for shutdown. This post will show you how to do all this.

Shutdown computer with command prompt
Required
A computer running Windows (XP, Vista, 7, 8 or 8.1) with the command prompt working perfectly, i.e. not disabled by a virus.

Initial Steps 
1) Press Windows Key + R.
2) Enter CMD and press Enter.

This will start the command prompt. Follow the instructions below depending on what you want to do.

Shutdown Local Machine (Your Computer)
Type "shutdown -s" without the quotes in the command prompt and press Enter. Shutdown is the command being executed and the switch -s tells the computer to shutdown.

Restart your Local Computer 
Type "shutdown -r" in the command prompt and press Enter. In this case, the command switch -r is telling the computer to restart after shutdown.

Log Off the Current User
Type "shutdown -l" in the command prompt and press Enter. The -l command switch tells the computer to log off.

Shutdown a Remote Computer
Type "shutdown -s -m \\name of the computer" in the command prompt and press Enter. Replace \\name of the computer with the actual name of the remote computer you are trying to shutdown. As mentioned earlier, you must have administrative access to the computer you are trying to shutdown. To know if you have administrative access, press Windows key + R and then type the name of the computer and press Enter.

Note: If you don't remember the name of the remote computer, you can look for it by opening a list of all the computers you are connected to by executing "net view" in command prompt.

If you can connect to the computer, you will be asked to login with your username and password. Upon entering them, a window will display the list of all the directories available to you. This should help you know whether you can or cannot shutdown the remote computer.

Hibernate a Local Computer
Type in "Rundll32.exe Powrprof.dll,SetSuspendState" without the quotes and press Enter. Your computer should hibernate, if it does not, then you must enable hibernation to do this.

Shutdown your or a remote computer after a specific time
Type "shutdown -s -t 60" to shutdown your computer after 60 seconds. Upon executing this, a countdown timer displaying a warning message will be shown. This command uses the -t command switch followed by a variable (which is 60 in this case) which represents the number of seconds after which the computer will shutdown.

Display a Message containing the reason for shutdown
Type shutdown -s  -t 500 -c "I am tired. I don't want to work anymore." (with the quotes) in the Command Prompt and press Enter. The -c switch is used in the code to give the reason for shutting down and what is followed in quotes will be displayed in the dialog box as the reason. This can be used to display all sorts of funny messages. One example :-

Skynet has become self aware. John Connor did not stop me. You can not use your PC anymore.

Stop a System Shutdown
Type "shutdown -a" and press Enter. This will stop the system from shutting down if the countdown to shut down has not reached 0.

Comments

Popular posts from this blog

List of all USSD codes for Android phone. By TechFilz

         LIST OF ALL USEFULL USSD CODES FOR ANDROID   NOTE : Some of these codes can wipe/delete some or all data from your phone. So please use these codes on your own risks. 1. Information Serial Description USSD Code 1 To Know IMEI Number of Android *#06# 2 GPS System Test *#*#1472365#*#* 3 Service For Google Talk *#*#1472365#*#* 4 Reset Factory Date *#*#8255#*#* 5 Current Firmware of SmartPhone *#*#7780#*#* 6 Main Service Menu *#*#197328640#*#* 7 General Information And Battery Info *#*#4636#*#* 8 Power Button Change *#*#7594#*#* 9 Testing Mode *#0*# 10 Signal Status Service Mode *#0011# 2. System Serial USSD Code Description 1 *#7780# Factory Reset 2 *2767*3855# Full Factory Reset 3 *#*#7780#*#* Factory data reset 4 *#745# RIL Dump Menu 5 *#746# Debug Dump Menu 6 *#9900# System Dump Mode 7 *#8736364...

AMD unveils 7000 series mobile APUs and M300 series mobile graphics solutions

AMD unveiled its latest generation of 7000-series accelerated processing units (APUs) for mobile products, new price points for A-series desktop APUs, along with AMD Radeon 300 series desktop graphics cards for OEM PCs and AMD Radeon M300 series mobile graphics solutions. Formerly codenamed Carrizo-L, the 7000 series mobile system on chip (SoC) will come with AMD processor cores, GPU cores, an AMD Secure Processor and system I/O on a single chip. There will be support for Microsoft DirectX 12, Windows 10 and more. Here are the features of the latest mobile SoCs. The mobile graphics solution has got a brand new update in the form of Radeon M300 series mobile GPUs. These GPUs will be seen in laptops from companies such as Alienware, HP, Dell, Lenovo, Toshiba and so on. Based on the next-gen Graphics Core Next (GCN) architecture, the mobile GPUs will support DirectX 12. According to  Anandtech , most of the mobile GPUs are a rebadging or the older mobile graph...

10 Apps You Probably Didn’t Know Can Earn You Extra Money

You probably already know that there are apps you can use not only for entertainment, but for earning extra money or saving some. But, you may not know about these apps, which are some of our favorites. Check out these 10 killer apps you can use to save or make extra money in your spare time. 1.  Foap Download links:  Android  |  iOS This is an app that allows you to make money by taking photos. You can charge as much as you like per photo, which means that your money-making opportunities through Foap are virtually limitless. People are always looking for a huge variety of photos, and you may be surprised at how much money you can make with a photo of your cat. 2.  Bookscouter Download links:  Web-Based If you have old books you want to get rid of, use this app to sell them. Scan the barcodes with your smartphone, and Bookscouter will let you see comparisons of payouts from more than 20 book buyback companies. Once you find the be...