Enables you to shut down or restart local or remote computers, one at a time.
Mar 10, 2014 To simply shut down your Mac safely and securely — letting all the background voodoo happen automatically — hit Control-Option-Command-Power (or Control-Option-Command-Eject). Shut Down Your PC Using the Command Prompt. Start by pressing the Windows + R keys to open the Run window. From there, type “cmd” in the box and then select the “OK” button. This will open the Command Prompt. Here, type shutdown /s. Once you press Enter, a message will appear letting you know that Windows will shut down in less than a. Sep 04, 2017 The shutdown command helps you to shut down as well as reboot a Mac using the Terminal. If you want to close down all the operations and shut down Mac then you will need to use the h flag and give it the command to shut the system immediately.
|/i||Displays the Remote Shutdown box. The /i option must be the first parameter following the command. If /i is specified, all other options are ignored.|
|/l||Logs off the current user immediately, with no time-out period. You cannot use /l with /m or /t.|
|/s||Shuts down the computer.|
|/r||Restarts the computer after shutdown.|
|/a||Aborts a system shutdown. Effective only during the time-out period. To use /a, you must also use the /m option.|
|/p||Turns off the local computer only (not a remote computer)—with no time-out period or warning. You can use /p only with /d or /f. If your computer doesn't support power-off functionality, it will shut down when you use /p, but the power to the computer will remain on.|
|/h||Puts the local computer into hibernation, if hibernation is enabled. You can use /h only with /f.|
|/e||Enables you to document the reason for the unexpected shutdown on the target computer.|
|/f||Forces running applications to close without warning users.|
Caution: Using the /f option might result in loss of unsaved data.
|/m ||Specifies the target computer. Can't be used with the /l option.|
|/t ||Sets the time-out period or delay to n seconds before a restart or shutdown. This causes a warning to display on the local console. You can specify 0-600 seconds. If you don't use /t, the time-out period is 30 seconds, by default.|
|/d ||Lists the reason for the system restart or shutdown. The supported parameter values are:|
|/c ||Enables you to comment in detail about the reason for the shutdown. You must first provide a reason by using the /d option and you must enclose your comments in quotation marks. You can use a maximum of 511 characters.|
|/?||Displays help at the command prompt, including a list of the major and minor reasons that are defined on your local computer.|
Users must be assigned the Shut down the system user right to shut down a local or remotely administered computer that is using the shutdown command.
Users must be members of the Administrators group to annotate an unexpected shutdown of a local or remotely administered computer. If the target computer is joined to a domain, members of the Domain Admins group might be able to perform this procedure. For more information, see:
If you want to shut down more than one computer at a time, you can call shutdown for each computer by using a script, or you can use shutdown/i to display the Remote Shutdown box.
If you specify major and minor reason codes, you must first define these reason codes on each computer where you plan to use the reasons. If the reason codes aren't defined on the target computer, Shutdown Event Tracker can't log the correct reason text.
Remember to indicate that a shutdown is planned by using the p parameter. Not using the p parameter, indicates that the shutdown was unplanned.
Using the p parameter, along the reason code for an unplanned shutdown, causes the shutdown to fail.
Not using the p parameter, and only providing the reason code for an planned shutdown, also causes the shutdown to fail
To force apps to close and to restart the local computer after a one-minute delay, with the reason Application: Maintenance (Planned) and the comment 'Reconfiguring myapp.exe', type:
To restart the remote computer myremoteserver with the same parameters as the previous example, type:
Command For Shutdown Mac Shortcut
If you want to shutdown your computer automatically at or after a specific time, you can learn here about how to do it. In this article, we’ve covered how to automatically shutdown a computer.
Suppose, you are downloading a large file or installing a software that may take a long time to complete. So, you can’t shutdown your computer until the task is finished. In this scenario, you can set your computer to be shutdown automatically and leave your computer without any headache of coming back to shut it down.
Automatically Shutdown Computer in Windows
If you are using Windows as the operating system, there are several methods to shutdown the computer automatically. We’ve discussed two methods for you.
Method 1: Creating Shortcut to Auto-shutdown Computer
Windows lets you create shortcuts for any command. So, create a shortcut for the shutdown command with appropriate attributes and double-click the shortcut icon to trigger the command.
Step 1: Create a Shortcut to Initiate auto-shutdown
Right-click on your desktop and select New > Shortcut.
The ‘Create Shortcut’ wizard appears. Type
shutdown -s -t 3600 at the text box where it asks to type the location of the item.
Click the ‘Next’ button.
If you want to display any message before shutting down your computer, type the following instead of the above code:
shutdown -s -c 'The computer will shutdown in a moment'-t 3600
Type a name for the shortcut and click the ‘Finish’ button. For instance, give the name as ‘Automatic Shutdown’
Now, double-clicking on the shortcut will set your computer to shutdown after 1 hour.
If you want to change the time duration before the shutdown, just replace 3600 with your time calculated in seconds.
Step 2: Create Another Shortcut to Abort the Automatic Shutdown
By the above method, you can’t simply stop your computer from shutting down once you initiate it by double-clicking the shortcut. But there is way to abort the shutdown process.
Right-click on your desktop and and select New > Shortcut.
shutdown -a at the text box where it ask to type the location of the item.
Click the ‘Next’ button and give a suitable name for the shortcut. For instance, say it is ‘Abort Shutdown’.
Click the ‘Finish’ button. This will create another shortcut at your desktop.
Double-click on the ‘Abort Shutdown’ shortcut to stop the computer from getting shutdown.
Method 2: Auto-Shutdown PC using Windows Task Scheduler
By the previous method, you need to initiate the automatic shutdown manually by double-clicking the shortcut. If you need more advanced method to automatically shutdown your computer, you can use the Windows task scheduler.
The task scheduler is available in Windows XP, Windows 7 and Windows 8. In Windows XP, click Start > Control Panel > Performance and Maintenance > Scheduled Tasks. In Windows 7, go to Start > Control Panel > System and Security > Administrative Tools > Task Scheduler. In Windows 8, press the Win key, place the cursor at the right-top corner of the windows. The Windows 8 doc bar appears. Type ‘task schedule’ at the search box and select ‘Schedule task’ from the search results.
Though we’ve written the method for Windows 7 you can apply this procedure at Windows XP and Windows 8.
After opening the task scheduler, click ‘Create Basic Task’ from the right sidebar of the window.
The ‘Create a Basic Task Wizard’ appears. Give a suitable name and description for the task. Give the name as something easy to remember such as ‘Automatic shutdown’. Click the ‘Next’ button.
Choose the schedule. Select the ‘Daily’ option from the ‘Task Trigger’ window and click ‘Next’.
Set the time you want to shutdown your computer automatically. Leave the ‘Recur every: 1 days’ settings as it is. Click the ‘Next’ button.
At the ‘Action’ window choose ‘Start a program’ as the action and click ‘Next’.
Put the location path of the program or script to shutdown the computer. Here we’ll use the program that the Windows uses to shut the system down. It is called as shutdown.exe and the path of the location is
C:WindowsSystem32shutdown.exe. So put this path, set the argument as
/s and click the ‘Next’ button.
Review the settings and click the ‘Finish’ button.
You are done. Now your computer will get shutdown automatically at the specified time everyday.Using the Task Scheduler you can also Shutdown your Windows PC Automatically at Night If Idle.
Automatically Shutdown Computer in Linux
If you want to automatically shutdown your computer running with Linux, you can do it by a simple command at the terminal. Open the terminal and run the following command:
sudo shutdown -h XXX
XXX represents the time span in minutes. For instance, if you choose
XXX as 120, your computer will automatically shutdown after 120 minutes i.e 2 hours.
You can also set your Linux computer to shutdown automatically at a specific time. Run this command at the terminal.
sudo shutdown -h XX:YY
XX:YY represents the clock time. For instance, if you choose
00:30, the computer will automatically shutdown at
If you want to abort the shutdown process, run the following command:
sudo shutdown -c
Command For Shutdown Mac Os
Automatically Shutdown Your MAC Computer
Command For Shutdown Mac Command
If you want to shutdown your MAC automatically, here is how to do that.
Click the Apple icon at your MAC and select ‘System preferences’ from the drop-down menu.
Click on ‘Energy saver’ at the ‘System preferences’ window.
The ‘Energy Saver’ dialog window appears. Click the ‘Schedule’ button from the bottom of the window.
In the drop-down tray, check the ‘Sleep’ option, select the the day (by default it is ‘Everyday’) and the time.
Click the ‘OK’ button and your MAC will automatically shutdown at the specified date and time.
Tip: Remotely Shut Down Your PC Using Mobile Phone.
Do you have your own method? Share with us at the comment section.