Categories
Interior

How to shut down your windows 10 pc using command prompt

Command Prompt is available in most Windows operating systems

How to shut down your windows 10 pc using command prompt

Tim Fisher has more than 30 years' of professional technology experience. He's been writing about tech for more than two decades and serves as the VP and General Manager of Lifewire.

  • Facebook
  • Twitter
  • LinkedIn
  • Tweet
  • Share
  • Email

Command Prompt is a command line interpreter application available in most Windows operating systems. It’s used to execute entered commands. Most of those commands automate tasks via scripts and batch files, perform advanced administrative functions, and troubleshoot or solve certain kinds of Windows issues.

Command Prompt is officially called Windows Command Processor, but it's also sometimes referred to as ​the command shell or cmd prompt, or even by its filename, cmd.exe.

How to shut down your windows 10 pc using command prompt

Command Prompt is sometimes incorrectly referred to as "the DOS prompt" or as MS-DOS itself. Command Prompt is a Windows program that emulates many of the command line abilities available in MS-DOS, but it's not MS-DOS.

Cmd is also an abbreviation for many other technology terms like centralized message distribution, color monitor display, and common management database, but none of them have anything to do with Command Prompt.

How to Access Command Prompt

There are several ways to open Command Prompt, but the “normal” method is via the Command Prompt shortcut located in the Start menu or on the Apps screen, depending on your version of Windows.

How to shut down your windows 10 pc using command prompt

The shortcut is faster for most people, but another way to access Command Prompt is via the cmd Run command. You can also open cmd.exe from its original location:

Yet another method for opening Command Prompt in some versions of Windows is through the Power User Menu. However, you might see PowerShell there instead of Command Prompt depending on how your computer is set up.

Many commands can only be executed if you’re running the Command Prompt as an administrator.

How to Use Command Prompt

To use Command Prompt, you enter a valid Command Prompt command along with any optional parameters. Command Prompt then executes the command as entered and performs the task or function it’s designed to perform in Windows.

For example, executing the following Command Prompt command in your Downloads folder would remove all MP3s from that folder:

Commands must be entered into Command Prompt exactly. The wrong syntax or a misspelling could cause the command to fail or worse; it could execute the wrong command or the right command in the wrong way. A comfort level with reading command syntax is recommended.

For example, executing the dir command will show a list of files and folders that exist at any specific location on the computer, but it doesn't actually do anything. However, change just a couple letters and it turns into the del command, which is how you delete files from Command Prompt!

Syntax is so important that with some commands, especially the delete command, adding even a single space can mean deleting entirely different data.

Here’s an example where the space in the command breaks the line into two sections, essentially creating two commands where the files in the root folder (files) are deleted instead of the files in the subfolder (music):

The proper way to execute that command so as to remove files from the music folder instead is to remove the space so that the whole command is strung together correctly.

Don't let this scare you away from using Command Prompt commands, but definitely let it make you cautious.

Command Prompt Commands

A large number of commands exist in Command Prompt, but their availability differs from operating system to operating system. You can view which Command Prompt commands are compatible with a specific operating system here:

Following those command lists will prove that there are lots and lots of commands you can use in Command Prompt, but not all of them are used as often as others.

Here are some of the more commonly used Command Prompt commands that are utilized in a variety of circumstances: chkdsk, copy, ftp, del, format, ping, attrib, net, dir, help, and shutdown.

Command Prompt Availability

Command Prompt is available on every Windows NT-based operating system which includes Windows 10, Windows 8, Windows 7, Windows Vista, Windows XP, and Windows 2000, as well as Windows Server 2012, 2008, and 2003.

Windows PowerShell, an advanced command line interpreter available in recent Windows versions, supplements the command executing abilities available in Command Prompt. Windows PowerShell may eventually replace the Command Prompt in a future version of Windows.

Windows Terminal is another Microsoft-approved way of using Command Prompt and PowerShell within the same tool.

Thank you for posting your query on Microsoft Community.

With the issue description, I understand that your Windows 10 computer keeps shutting down every 10 minutes. I will certainly help you in getting this issue fixed.

This issue might occur due to any software conflict. Let’s follow below mentioned steps and check if that helps:

Method 1 :

Step 1: Safe Mode

To diagnose whether this issue occurs in “Safe Mode” , let’s reboot the computer in safe mode and check if the issue appears there as well.

Safe mode is a diagnostic mode for Windows that starts your computer in a limited state. Only the basic files and drivers necessary to run Windows are started. This helps us in identifying whether the issue is due to some third party programs conflict. The word Safe mode appear in the concern of your monitor to identify which windows mode you are using. Please follow the below mentioned steps

1. Click on the Power button on the login screen.

2. Press and hold the SHIFT key on keyboard and simultaneously click on Restart option.

3. Once your PC restarts, on the Choose an option screen, tap or click Troubleshoot . If you don’t see the Startup Settings option, tap or click Advanced options .

4. Tap or click Startup Settings .

5. Tap or click Restart .

6. On the Startup Settings screen, choose the startup setting for Safe Mode with Networking (Generally F5 key is pressed to select this setting).

7. Sign in to your PC with a user account that has administrator rights.

If the issue does not appear in Safe Mode then, try step 2

Step 2: Clean Boot

A clean boot is performed to start Windows by using a minimal set of drivers and startup programs. This helps eliminate software conflicts that occur when you install a program or an update or when you run a program in Windows. To know more, follow the article below:

The same steps can be followed for Windows 10 operating system.

Note: After troubleshooting, refer to this section ‘ How to reset the computer to start normally after clean boot troubleshooting ’.

Try method 2, if the issue persist

Method 2 : Run System Maintenance Troubleshooter

Follow the steps given below:

1. Type Troubleshooting in the Search box from the desktop.

2. Select the Troubleshooting option.

3. Select View All option and select the System Maintenance .

4. Click on Next to perform the System Maintenance troubleshooter and follow the steps.

Hope this information is helpful. Please write back to us if you need any further assistance, we’ll be glad to assist you.

Report abuse

3 people found this reply helpful

Was this reply helpful?

Sorry this didn't help.

Great! Thanks for your feedback.

How satisfied are you with this reply?

Thanks for your feedback, it helps us improve the site.

How satisfied are you with this reply?

Thanks for your feedback.

Thank you for the update on the issue.

The answer to your question is: There might be a possibility that there is some hardware issue but we need to diagnose the problem first.

Try the following methods and check if it works.

Method 1: Disconnect unnecessary external devices

If you have any unnecessary external device connected to the machine, you may unplug them & check if the issue persists.

Method 2: Run the Power Troubleshooter.

Power troubleshooter will automatically fix some common issues with Power Plans. Run the Power troubleshooter to adjust your computer’s power settings. It checks things like your computer’s timeout settings, which determines how long the computer waits before turning off the monitor display or entering sleep mode. Adjusting these settings can help you conserve power and extend your computer’s battery life.

1. Press Windows key and type Troubleshooting.

2. Select Troubleshooting and click on System and Security.


3. Click on Power and follow the onscreen steps.

Also try the steps below and check if it helps.

1. Type Power Options in Search. Click on it to open.

2. Then on the left side click on Choose what power button does.

Hope this information helps. Please let us know if you need any other assistance with Windows in future. We will be happy to assist you.

Marshall Gunnell
How to shut down your windows 10 pc using command promptMarshall Gunnell
Writer

Marshall Gunnell is a writer with experience in the data storage industry. He worked at Synology, and most recently as CMO and technical staff writer at StorageReview. He’s currently an API/Software Technical Writer at LINE Corporation in Tokyo, Japan, runs ITEnterpriser, a data-storage and cybersecurity-focused online media, and plays with development, with his RAID calculator being his first public project. Read more.

How to shut down your windows 10 pc using command prompt

Using the Command Prompt to turn off your Windows 10 PC provides more options and flexibility than merely using the shutdown option from the Start menu or pressing the power button on your PC. Here’s how it’s done.

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.

How to shut down your windows 10 pc using command prompt

This will open the Command Prompt. Here, type shutdown /s .

How to shut down your windows 10 pc using command prompt

Once you press Enter, a message will appear letting you know that Windows will shut down in less than a minute. You can select the “Close” button if you like, but this will not affect the shutdown process.

How to shut down your windows 10 pc using command prompt

That’s all there is to it. Within the minute, your PC will shut down. There’s also a way of restarting your PC using the Command Prompt if that’s what you prefer.

Restart Your PC Using the Command Prompt

This process for restarting your PC is nearly identical to shutting down your PC, except you’ll use a slightly different command in the Command Prompt.

Open the Run window by pressing the Windows Key +R keys, type “cmd” in the box, and then select the “OK” button to open the Command Prompt.

Once in the Command Prompt, type shutdown /r .

How to shut down your windows 10 pc using command prompt

Press the Enter key to proceed. Your PC will now begin the restart process within the next minute.

These are just two of the many different options for shutting down your Windows PC from the Command Prompt. To get a full list of shut down options available to you, type shutdown /? in the Command Prompt and then press Enter. A complete list of switches and respective descriptions will be displayed.

How to shut down your windows 10 pc using command prompt

For the convenience of our readers, we’ve provided the complete list of the shutdown commands and descriptions provided by Microsoft below.

List of Command Prompt Shutdown Switches and Parameters

Shutdown the computer. On the next boot, if Automatic Restart Sign-On is enabled, automatically sign in and lock the last interactive user.

After sign in, restart any registered applications.

Full shutdown and restart the computer. After the system is rebooted, if Automatic Restart Sign-On is enabled, automatically sign in and lock the last interactive user.

After sign in, restart any registered applications.

Abort a system shutdown.

This can only be used during the time-out period.

Combine with /fw to clear any pending boots to the firmware.

Turn off the local computer with no time-out or warning.

It can be used with /d and /f options.

Hibernate the local computer.

It can be used with the /f option.

Performs a shutdown of the computer and prepares it for a fast startup.

Must be used with /s option.

Go to the advanced boot options menu and restart the computer.

Must be used with /r option.

Set the time-out period before shutdown to xxx seconds.

The valid range is 0-315360000 (10 years), with a default of 30. If the time-out period is greater than 0, the /f parameter is implied.

Comment on the reason for the restart or shutdown.

A maximum of 512 characters allowed.

Force running applications to close without forewarning users.

The /f parameter is implied when a value greater than 0 is specified for the /t parameter.

Provide the reason for the restart or shutdown.

p indicates that the restart or shutdown is planned.

u indicates that the reason is user-defined.

xx is the major reason number (positive integer less than 256).

yy is the minor reason number (positive integer less than 65536).

  • › The Best Gaming Keyboards of 2021: Be on Top of Your Game
  • › Why Sublime Text Is Great For Writers, Not Just Programmers
  • › What Is a ULED TV, and How Is It Different?
  • › Why Professionals Will Actually Want a 2021 MacBook Pro
  • › How to Add Images to Questions in Google Forms

How to shut down your windows 10 pc using command prompt Marshall Gunnell
Marshall Gunnell is a writer with experience in the data storage industry. He worked at Synology, and most recently as CMO and technical staff writer at StorageReview. He’s currently an API/Software Technical Writer at LINE Corporation in Tokyo, Japan, runs ITEnterpriser, a data-storage and cybersecurity-focused online media, and plays with development, with his RAID calculator being his first public project.
Read Full Bio »

How to shut down your windows 10 pc using command prompt

To shut down Windows 10 PC, one quick way is to use Command Prompt commands. Check how to shutdown Windows 10 using command line in CMD. Also learn how to remotely shut down a Windows 10 PC with CMD. As the best Windows 10 software mate, MiniTool software also provides you data recovery, hard drive management, system backup and restore tools.

  • What is the command for Windows 10 shutdown in CMD?
  • How do I shut down Windows 10 from Command Prompt?
  • How do I shut down a computer remotely with Command Prompt?

If you meet Windows 10 won’t shut down problem by using the usual ways, you can try the unusual way to shut down your Windows 10 PC. Learn how to shut down Windows 10 with command line in CMD (Command Prompt) below. This is helpful when computer freezes, gets stuck or crashes because of some errors and can’t shut down. (Related: How to Repair Windows 10)

How to Shut Down Windows 10 with Command Line in CMD

Step 1. You can press Windows + R, type cmd, and press Enter to open Command Prompt in Windows 10.

Step 2. In Command Prompt window, you can type shutdown /s command line, and hit Enter, then the CMD.exe will perform the Windows shutdown action.

Tip: You can also type shutdown command in CMD after you enter into Command Prompt window, and it will present a list of different options for Windows 10 shutdown. Different command lines perform different operations. You can check some of the Windows shutdown commands below.

  • shutdown /s – just shut down your Windows 10 computer.
  • shutdown /r – shut down and restart the computer.
  • shutdown /a – abort the system shutdown before the timeout.
  • shutdown /l – log off the computer.
  • shutdown /f – force close running applications without forewarning users.
  • shutdown /m \\computername – specify the target computer you want to shut down.
  • shutdown /t xxx – set the timeout period before shutdown to xxx seconds. (Related: schedule shutdown Windows 10)
  • shutdown /c “comment” – comment on the reason for the restart or shutdown.

How to shut down your windows 10 pc using command prompt

Windows 10 Shutdown Shortcut

Some of you may also wonder how to use keyboard shortcut to shut down Windows 10. You can press Alt + F4, and it will pop up the Shutdown dialog. You can then use the arrow keys on the keyboard to select an option and press Enter to power off Windows 10 PC or laptop.

How to Remotely Shut Down or Restart a Windows 10 Computer with CMD

You can even use Command Prompt to remotely restart or shut down a Windows 10 computer over the Internet. The Windows PCs should be connected to the same network.

After you enter into Command Prompt, you can type shutdown /m \\computername /r /f command line, and hit Enter. This will remotely restart the target Windows 10 computer and force close all running programs on it.

To shut down a Windows 10 computer remotely, you can type the command line: shutdown /m \\computername /s /c “This computer will shut down, please save all work.” /t 100, and hit Enter. This command line will shut down Windows 10 computer in CMD, along with forcing all running programs to close, show the warning message, and count down 100 seconds before the remote computer shuts down.

You can also remotely shutdown PC via Shutdown dialog.

  • You can type shutdown /i command in CMD, and press Enter to open Remote Shutdown Dialog.
  • Click Add or Browse button to add the target computers to the list. You can type the computer network name in \\computername format or just type the computer name.
  • Then you can set the shutdown options: restart or shutdown. You can also set the shutdown settings like displaying a warning.
  • Then you can run the corresponding Windows shutdown commands to shut down or restart a batch of computers in the same network.

How to shut down your windows 10 pc using command prompt

Bottom Line

This post gives some tips on how to shut down Windows 10 with command line in CMD, and how to how to restart or shut down remote computers with CMD. If you have better ideas, please do not hesitate to share with us.

  • Facebook
  • Twitter
  • Linkedin
  • Reddit

ABOUT THE AUTHOR

Position: Columnist

Alisa is a professional English editor with 4-year experience. She loves writing and focuses on sharing detailed solutions and thoughts for computer problems, data recovery & backup, digital gadgets, tech news, etc. Through her articles, users can always easily get related problems solved and find what they want. In spare time, she likes basketball, badminton, tennis, cycling, running, and singing. She is very funny and energetic in life, and always brings friends lots of laughs.

How to shut down your windows 10 pc using command prompt

Using the Command Prompt to turn off your Windows 10 PC provides more options and flexibility than merely using the shutdown option from the Start menu or pressing the power button on your PC. Here’s how it’s done.

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.

How to shut down your windows 10 pc using command prompt

This will open the Command Prompt. Here, type shutdown /s .

How to shut down your windows 10 pc using command prompt

Once you press Enter, a message will appear letting you know that Windows will shut down in less than a minute. You can select the “Close” button if you like, but this will not affect the shutdown process.

Sign out message

That’s all there is to it. Within the minute, your PC will shut down. There’s also a way of restarting your PC using the Command Prompt if that’s what you prefer.

Restart Your PC Using the Command Prompt

This process for restarting your PC is nearly identical to shutting down your PC, except you’ll use a slightly different command in the Command Prompt.

Open the Run window by pressing the Windows Key +R keys, type “cmd” in the box, and then select the “OK” button to open the Command Prompt.

Once in the Command Prompt, type shutdown /r .

How to shut down your windows 10 pc using command prompt

Press the Enter key to proceed. Your PC will now begin the restart process within the next minute.

These are just two of the many different options for shutting down your Windows PC from the Command Prompt. To get a full list of shut down options available to you, type shutdown /? in the Command Prompt and then press Enter. A complete list of switches and respective descriptions will be displayed.

How to shut down your windows 10 pc using command prompt

For the convenience of our readers, we’ve provided the complete list of the shutdown commands and descriptions provided by Microsoft below.

If you are using a Windows operating system for a while, then you might be well aware of the Command Prompt. It is a command-line interpreter that interacts with the user through a command-line interface.

Command Prompt could be very useful if you know the commands. We have shared a detailed guide on 200+ CMD commands for Windows 10 to carry out different things. In this article, we will be discussing a trick that would help you to shut down your PC using the command prompt.

Shut Down Windows 10 Using Command Prompt

The great thing is that turning off the computer through Command Prompt provides you more options and flexibility. So, let’s check out how to shut down Windows 10 computers using the Command Prompt.

Step 1. First of all, press Windows Key + R to open the RUN dialog box.

How to shut down your windows 10 pc using command prompt

Step 2. On the RUN dialog box, enter ‘CMD’ and press the enter button.

How to shut down your windows 10 pc using command prompt

Step 3. Now on the command prompt, you need to enter ‘shutdown /s’ . This will shut down your PC in a minute.

How to shut down your windows 10 pc using command prompt

Step 4. To restart your PC, you need to enter the command ‘shutdown /r’

How to shut down your windows 10 pc using command prompt

Step 5. To access the full list of shutting down options, type in ‘shutdown /?’ and Hit enter. This will list out all options.

How to shut down your windows 10 pc using command prompt

List of Shut Down Options Available through Command Prompt

Below, we have listed all of the shutdown options that were available via Command Prompt. Depending on your needs, you can execute the commands on the command prompt. Just add the codes after the prefix ‘shutdown’ like ‘shutdown /sg’, ‘shutdown /g’, etc.

/? – Display help.
/i – Display the graphical user interface (GUI).
/l – Log off. This cannot be used with /m or /d options.
/s – Shutdown the computer.
/sg – Shutdown the computer. On the next boot, if Automatic Restart Sign-On is enabled, automatically sign in and lock the last interactive user. After sign in, restart any registered applications.

/r – Full shutdown and restart the computer.
/g – Full shutdown and restart the computer. After the system is rebooted, if Automatic Restart Sign-On is enabled, automatically sign in and lock the last interactive user. After sign in, restart any registered applications.

/a – Abort a system shutdown. This can only be used during the time-out period. Combine with /fw to clear any pending boots to the firmware.

/p – Turn off the local computer with no time-out or warning. It can be used with /d and /f options.

/h – Hibernate the local computer. It can be used with the /f option.

/hybrid – Performs a shutdown of the computer and prepares it for a fast startup. Must be used with /s option.

/fw – Combine with a shutdown option to cause the next boot to go to the firmware user interface.

/e – Document the reason for an unexpected shutdown of a computer.
/o – Go to the advanced boot options menu and restart the computer. Must be used with /r option.

/m \\computer – Specify the target computer
/t xxx – Set the time-out period before shutdown to xxx seconds. The valid range is 0-315360000 (10 years), with a default of 30. If the time-out period is greater than 0, the /f parameter is implied.

/c “comment” – Comment on the reason for the restart or shutdown. A maximum of 512 characters allowed.

/f – Force running applications to close without forewarning users. The /f parameter is implied when a value greater than 0 is specified for the /t parameter.

/d [p|u]xx:yy – Provide the reason for the restart or shutdown. p indicates that the restart or shutdown is planned. u indicates that the reason is user-defined. xx is the major reason number (positive integer less than 256). yy is the minor reason number (positive integer less than 65536)

So, this is all about how to shut down your Windows 10 computer using the Command Prompt. If you have any doubts related to this, let us know in the comment box below. I hope this article helped you! Share it with your friends also.

How to shut down your windows 10 pc using command prompt

While it’s true that shutting down or restarting your Windows 10 PC is relatively quick when done from the Start menu, using the built-in shutdown tool in Command Prompt (CMD) provides you with a lot more options. With CMD, you can schedule actions such as shutdown, reboot, or hibernation as well as display a personalized message when running them. Additionally, you will be able to shut down or reboot other remote computers that you may have access to on the same network.

Shutdown/Restart Your PC With Command Prompt

With the Command Prompt, you can shut down or restart your Windows 10 PC with a timer or by displaying a custom message. Here’s how:

1. Open the Start menu and type in Command Prompt in the search box. Then click on Run as administrator to open it with admin rights.

2. Type in the following command and press Enter.

Your PC will power off after a minute. If you wish to modify the timeframe after which the PC should turn off, then use the following command instead.

You should now replace the COUNTDOWN in the command above with the number of seconds after which the PC should shut down.

In addition to a timer, if you wish to shut down your PC with a custom dialog message, then use the following command instead:

Again, replace the CUSTOM MESSAGE with any text to let the user know the reason behind powering off the PC.

Similarly, to restart the PC with Command Prompt, replace the letter s with r in the commands above to perform a restart, restart with custom countdown, and restart with a custom message.

  • Normal restart – shutdown /r
  • Restart with a countdown – shutdown /r /t COUNTDOWN
  • Restart with a custom message – shutdown /r /t COUNTDOWN /c CUSTOM MESSAGE

If at any point during the countdown, you decide to abort the scheduled shutdown, give the following command:

Aside from the options to add a timer and message, there’re a bunch of other options available while shutting down or restarting your PC. To get the full list of commands available, type the following in the Command Prompt and press Enter:

You’ll be presented with a list of all the shutdown commands you can perform with a brief description.

How to Shutdown a Remote Computer with Command Prompt

Probably the best part about using the shutdown command-line tool is being able to shutdown/restart a computer remotely. However, to enable this feature, you need to first configure that remote computer to receive commands from other PCs.

Set Up Remote Shutdown on Remote Computer

To set up remote shutdown or restart on a computer, you need to disable the User Account Control in it. Here’s how to do it.

1. Open the Start menu and type in Command Prompt in the search box. Then click on Run as administrator on your right to open it with admin rights.

2. Type in the following command and press Enter.

That’s it. Now you’re all set to receive commands remotely from an authenticated PC.

Perform a Remote Shutdown

Once you’ve disabled the User Account Control in the remote computer, follow the steps given below to remotely turn off that computer.

1. Open the Start menu, type in the Command Prompt, and click on Run as administrator to open it with admin rights.

2. Type in the following command and press Enter.

3. This will open up the Remote Shutdown Dialog. Here, under Computers, you can Add or Browse the remote computers connected on the same network as yours to shutdown or restart remotely.

4. Once added, you can choose to shut down or restart from the drop-down menu. Additionally, you can also modify the number of seconds for which warning should be displayed before shutting down the remote computer. Press OK to save changes.

And voila! You’ll be able to shut down or restart a remote computer without accessing it physically. Using the steps above, you can add multiple computers to the list and perform shutdown action remotely.

Closing Remarks: Shutdown/Restart Windows 10 PC with Command Prompt

So that was that. Using a command prompt to shutdown or restart your PC unlocks a whole lot of options. Especially, being able to shut down or restart a remote computer can be useful if you’ve multiple computers set up in different rooms.

More often everyone shutdown there computer simply by clicking on Power button but few people use a command prompt to shut down their computer. Command prompt provides lot more feature along with shutting down option. Some of these are Restart, Log Off, Set a display message if exceeds time limit and lot more. Here we are going to discuss some of these options that how to perform them using the command prompt.

How to shut down your windows 10 pc using command prompt

You can perform this on Windows 7/8/10.

How to Shutdown Computer using cmd

  • Open the command prompt by typing windows key+ R (write cmd and press enter).
  • Enter the below command and then press Enter key.

How to Restart PC using the command prompt

  • Again open cmd as done above. Enter the below command and press Enter key. This will restart your computer.

Logging Off current user cmd

  • In the command prompt, enter the below command to log off the current user.

Display text message before Shut down PC

  • To show a display message as a reason to shut down your computer enter below command. This often we require when some other work or restricted time limit is there. You can write any message inside the quotation. Here 100 is time (in seconds).

Shut down Remote PC

For this, you must have administrative access to that PC that you want to shut down. If you don’t have administrative access then you can not be able to access that PC from your PC. Type the below command and press enter. Replace target PC name here with your target PC name.

Shut down your PC without any warning or notification

If you want to shut down your computer without any prior warning, enter below command and press enter.

Hibernate your Local Computer

To hibernate your own PC enter the below command and press enter

If you need more functions regarding above you can check more commands in the screenshot below

How to shut down your windows 10 pc using command prompt

You may also like

I hope this tutorial helps you to get access to all the commands shown above. Follow us for more tech stuff and latest updates on social media Facebook, Twitter.

Sometimes, situations might arise due to either a windows bug or some malicious program that start menu tray won’t open even on the press, leaving us with only forcing the desktop or laptop to shut down by either long pressing the power button or cutting off the power supply of the device.

To overcome such a situation, there are various efficient least time-consuming methods of shutdown, here in this article we will show you one of such ways to shutdown a computer in multiple ways. Go through the following command and save that as a .bat file. This .bat on getting executed (by a simple double click or other methods) should initiate the shutdown process.

Open Command Prompt (cmd) and type:

The above command will schedule a shutdown, the Windows machine should be scheduled to shutdown within a minute of executing this command. It should look something like this:

How to shut down your windows 10 pc using command prompt

After execution of this command, you would see something similar like this:

How to shut down your windows 10 pc using command prompt

  • To cancel a scheduled shutdown via this method simply type:

How to shut down your windows 10 pc using command prompt

  • The remote shutdown of a computer (GUI aided) in network can be done with the help of the following command:

How to shut down your windows 10 pc using command prompt

  • You can save the above code as a .bat file, and execute it instead of always clicking start > power > shutdown. Save with -t 00 parameter, so that the shutdown is instantaneous. Basically type & save:
  • To have a windows machine shutdown after a custom set time, type:

( -t is superseded by time in seconds, for example, if we want an immediate shutdown, we can write: shutdown -s -t 00. Also, as stated above, you can just as easily cancel a scheduled shutdown or restart like this by typing, shutdown -a )

  • To have the windows machine restart instead of shutdown, type:

(you can have -t and other parameters in this command. Type shutdown /? for more information on other available parameters)

  • For instant and most efficient shutdown process, open any text editor software, namely notepad (comes in-built with windows) and write:

and then save the file with .bat extension. Now simply execute this .bat file to initiate an instantaneous shutdown.