Skip to content

TechDirectArchive

Hands-on IT, Cloud, Security & DevOps Insights

  • Home
  • About
  • Advertise With US
  • Contact
  • Reviews
  • Toggle search form
Home » Windows » Handy Shutdown commands available in Windows

Handy Shutdown commands available in Windows

Posted on 30/01/201919/09/2023 Christian By Christian No Comments on Handy Shutdown commands available in Windows
Windows commands

There are times you (System Administrator) may want to reboot your PC due to undesired behavior on your PC. During and after the installation of new programs (software and hardware), most times, you may need to restart your device. This will shut off all processes so that the Kernal can be re-established with the new software or hardware. Here I will be discussing day-to-day vital Microsoft Commands needed to operate and administer any Windows Environment ranging from Windows Server, 2008, 2012, 2016, and 2019. Kindly refer to these related guides: How to logoff, restart, or shutdown Windows PC or Server remotely via Command Prompt and PowerShell, how to restore a VM to its previous state (restoring a checkpoint), Unable to Shutdown a HyperV Virtual Machine, and how to use command prompt to shutdown and restart your computer.

Here are some switches associated with Windows regardless of the environment. I will be discussing a few.

Handy Shutdown commands available in Windows

Nevertheless, The shutdown command allows you to shut down your PC or Server, as the name implies. Additionally, This will ensure Windows initiates the shutdown of the server, and the same process is followed as shutting down via the UI. Similarly, The Switches below can be used with the shutdown command.

Syntax Usage: shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /e | /o] [/hybrid] [/f] [/m computer][/t xxx][/d]
Run the shutdown command from windows as shown here for the options and explanations too

Let’s explain what these switches are in detail. Note, some systems can let us use (-) switches or (/). This depends on the version of your system.

switchesSyntax Description
/iDisplay the graphical user interface (GUI).
This switch must be the first option.
/lLog off. Note: The /l switch cannot be used with /m or /d options.
/sShutdown the computer.
/rFull shutdown and restart the computer.
/gFull shutdown and restart the computer.
/aAbort a system shutdown. But can only be used during the time-out period.
/pTurn off the local computer with no time-out or warning. Can be used with /d and /f options.
/hHibernate the local computer. Can be used with the /f option.
/hybridPerforms a shutdown of the computer and prepares it for fast startup.
Must be used with /s option.
/eDocument the reason for an unexpected shutdown of a computer.
/oGo to the advanced boot options menu and restart the computer.
Must be used with /r option.
/m computerSpecify the target computer.
/t xxxSet the time-out period before shutdown to xxx seconds. The valid range is 0-315360000 (10 years),
/c Comment the reason for the restart or shutdown.
/fForce running applications to close without forewarning users. The /f parameter is implied when a value greater than 0 is specified for the /t parameter.
/dProvide the reason for the restart or shutdown.

Furthermore, Here are some examples of how these syntaxes are used.

shutdown /r /c "Rebooting for after windows updates."

However, This command displays a Windows system shutdown window of about 30 seconds, prompting the user that the computer is going to shut down and then restart the computer

shutdown /s /m PCtest /t 10

Moreover, This command will shut down remote Server “PCtest” after 10 seconds.

In addition, For other older switch (-) usage, Please the examples below.

shutdown -s (Shuts down)
shutdown -r (Restarts)
shutdown -l (Logs off)
shutdown -h (Hibernates)
shutdown -i (Interactive mode". Instead of performing an action, it displays a GUI dialog)
shutdown -a (Aborts a previous shutdown command)
shutdown -t 0 -r -f (Force an immediate reboot:)
shutdown -t 30 -r (For a more friendly "give them some time)

Nonetheless, I hope you found this blog post on Handy Shutdown commands available in Windows helpful. Consequently, Please let me know in the comment session if you have any questions.

Rate this post

Thank you for reading this post. Kindly share it with others.

  • Share on X (Opens in new window) X
  • Share on Reddit (Opens in new window) Reddit
  • Share on LinkedIn (Opens in new window) LinkedIn
  • Share on Facebook (Opens in new window) Facebook
  • Share on Pinterest (Opens in new window) Pinterest
  • Share on Tumblr (Opens in new window) Tumblr
  • Share on Telegram (Opens in new window) Telegram
  • Share on WhatsApp (Opens in new window) WhatsApp
  • Share on Mastodon (Opens in new window) Mastodon
  • Share on Bluesky (Opens in new window) Bluesky
  • Share on Threads (Opens in new window) Threads
  • Share on Nextdoor (Opens in new window) Nextdoor
Windows Tags:shutdown, Windows 10, Windows 11

Post navigation

Previous Post: How to Fix Err Connection Timed Out DNS Error
Next Post: Logon Failure Reasons for Windows Event Viewer

Related Posts

  • xxxxxx 1
    Display Windows system information via the Windows registry Windows
  • fddd
    How to check the version of Windows ADK Windows
  • Feature image
    How to search Group Policy for a specific Setting in Windows 10 and 11 Windows
  • gns3
    GNS3 Setup: Error opening file for writing, click on Abort to stop installation, Retry to try again, or Ignore to skip this file Windows
  • screenshot 2020 02 08 at 15.53.31
    Auto Logon Error “Username and password specified is not valid” Windows
  • How to fix Windows Update Fails with Error 0x80092004
    How to fix Windows Update Fails with Error 0x80092004 Windows

More Related Articles

xxxxxx 1 Display Windows system information via the Windows registry Windows
fddd How to check the version of Windows ADK Windows
Feature image How to search Group Policy for a specific Setting in Windows 10 and 11 Windows
gns3 GNS3 Setup: Error opening file for writing, click on Abort to stop installation, Retry to try again, or Ignore to skip this file Windows
screenshot 2020 02 08 at 15.53.31 Auto Logon Error “Username and password specified is not valid” Windows
How to fix Windows Update Fails with Error 0x80092004 How to fix Windows Update Fails with Error 0x80092004 Windows

Leave a Reply Cancel reply

You must be logged in to post a comment.

Microsoft MVP

VEEAMLEGEND

vexpert-badge-stars-5

Virtual Background

GoogleNews

Categories

veeaam100

Veeam Vanguard

  • Capture 91
    How to install IIS Web Server on Windows Server Web Server
  • feature photo terraform
    How to install Amazon RDS using Terraform Linux
  • insufficientaccessright 1
    Azure AD Connect Permission issue: Error 8344 insufficient access rights to perform the operation AWS/Azure/OpenShift
  • PowerShell logo
    PowerShell: How to update PowerShellGet and Package Management Windows Server
  • Windows 11 taskbar features remove 1
    How to modify Windows 11 Taskbar via Intune and GPO Windows
  • OOBEZDP
    OOBEZDP: Something went wrong during the Windows deployment Windows
  • db nginxseriesanisibleplaybook 1540x748 1
    How to install and configure Ansible on Ubuntu Configuration Management Tool
  • image 78
    How to enable LDAP over SSL with a third-party Certificate such as DigiCert Windows

Subscribe to Blog via Email

Enter your email address to subscribe to this blog and receive notifications of new posts by email.

Join 1,814 other subscribers
  • RSS - Posts
  • RSS - Comments
  • About
  • Authors
  • Write for us
  • Advertise with us
  • General Terms and Conditions
  • Privacy policy
  • Feedly
  • Telegram
  • Youtube
  • Facebook
  • Instagram
  • LinkedIn
  • Tumblr
  • Pinterest
  • Twitter
  • mastodon

Tags

Active Directory Azure Bitlocker Microsoft Windows PowerShell WDS Windows 10 Windows 11 Windows Deployment Services Windows Server 2016

Copyright © 2025 TechDirectArchive

 

Loading Comments...
 

You must be logged in to post a comment.