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 or 8) 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

Maxon Cinema 4D Studio R13.058 full Keygen Cracked Version | Mediafire Torrent Download Link

Download Maxon CINEMA 4D Studio Full Version With Keygen -Everything You Need for High-End 3D 32 and 64 bit MAXON CINEMA 4D STUDIO R13.058 (x86/x64) CINEMA 4D Studio is the very best that MAXON has to offer for professional 3D artists. If you want to create advanced 3D graphics but need a helping hand to ensure you create jaw-dropping graphics quickly and easily, then this is the choice for you.                     All You Ever Wanted This is our top-of-the-line product. It not only contains everything the other CINEMA 4D versions offer - it goes far beyond. CINEMA 4D Studio has all the tools you need to tackle even the most complex project. Minimum System Requirements Windows XP, Vista or 7 running on Intel or AMD CPU with SSE2-Support; Mac OS X 10.5.8 or higher running on an Intel-based Mac; 1024 MB free RAM, DVD ROM drive. Standard DVD installation can take up to 4 GB of disk space. Software m...

Minitool Power Data Recovery 6.6 Activation Key

- Technician License: MSMCS3KFS58YUPUYVA3388SVC4PPC4P8 SS45A5MMPAXAU3CXKAA8U88A5CY3SVPU ASAAXUKCVM8UYXMSKVXSU55A5434UKP5 5S8P4UMC8544M8A5K88KAPC8W4CKK8PM 4SSXYAMWUM8SSASKYXSMSY35WCKX5PPK ASK4M3M4MAF3C3MXFWUWSV3MV4PKMCPY SSFF3PM835YK8UUVMPFW4SCSMC3YXAPY 5SXVFYMY8MF333SYKMY8KCPUP4AWYFPU CSVKKSKV45MM58M8MUKWA4KUKCA5AWP5 YS8C88KPFMKFK5P84WUAMSU3CC4U8AP4 CSY54KMVFMY8CU4AS5PPPUYP8CP3F8PM 5S3CMXM38AUKYPYUSWVVW3FPX4VUVCPM CS58YMKC3AVVU4KK8843WSYKKCY8M8P5 MSVKKSMUXMWVF5KU4AMM4AV8Y4A55WPU - Enterprise License: 33M5V84A3V44AMVUWVUFXKWXCCU3SUUC X3PFS54PM5SFCKP5W5YY4VXCS44YPWU3 K3KSKP434MWKASWYUK3PPXVP8CWS3PUX P3A3PM4U8VM4F4SKCCPP845FA48X5CUV U3Y5AK4335SXAYWPC3CA4MK834U8XYUX K3M8SXPS4MUXCAY5X4K4A5A5FCW3UFUS K35KC843YAW4UXFFFWMAX8V8FCYVCWUX K3FAW84CWV3UCY35K5YY4UY33CKSUXUX 83PCFMPXY5PVFKKY8KKFMAV45C4UP4UW 8388PU48AAWVAKCVA5FP4853ACSFVCU3 U3YVYU4SXM834AUXWVWAWV3434WPKSUC F3YSS5PMVAWWWSCYFKCFX85SPCP4WWUA 33MY5S4UXVUS45YCMY5UPKVY4CXV5MUV F3XFK445A55A48CWX4SWM3VSWCVYFPU...

Windows 7 For Android [apk] | Full Version | Free Download

Windows 7 For Android [apk] | Full Version | Free Download INFO Please Note: If you have a Motorola Phone with Motoblur please download "Moto Home Fix" by Nightshade Labs to choose the home application. It's finally here! Windows 7 for Android! You can now emulate Windows 7 on your Android device. This home application can replace the default home application (if desired) and allows you to access anything on your phone through Windows 7 for Android. No other application required! Unlike most home or theme applications that require Launcher Pro or similar apps. This means more memory for you and a quicker interface. This application includes many great features; task bar, start menu, widgets page, and of course the desktop. The task bar includes the main features of your device; the start button, the browser, messaging, dialer, and the launcher. The launcher gives you a list of all installed applications and allows you to pick one to run. The start menu allo...