How to Shut Down Windows 10 Using Command Prompt – Guide

Shutting down your computer from the Start menu or lock screen in Windows 10 is convenient, but there are also ways to do the same things from the command prompt. ..

The command line tool can be a powerful tool for system administrators. It can allow you to record the reason for an event, display personalized messages to the user, and shut down and restart remote equipment. However, if you spend most of your time in the command prompt terminal, you need to write a script that includes restarting your computer or you are making system changes, and you want to record a reason for the restart or shutdown event, it will usually come in handy.

In this Windows 10 guide, we’ll show you how to use the shutdown.exe command-line tool to shut down and restart local and remote machines in a variety of ways. By shutting down and restarting machines, we can improve their performance, reduce the risk of data loss, and keep our systems running smoothly.

How to Knife

How to turn off the computer with the shutdown command

  1. Type “shutdown” into the command prompt.
  2. The computer will shut down and display a message telling you to press “y” to continue.
  3. Press “y” and the computer will start shutting down automatically.

Right-click on the top result and select Run as administrator.

To shut down the device immediately after one minute, type the following command: shutdown /r Shutdown can be abbreviated to shutdown. ..

To shut down a computer after a specified time, type the following command: shutdown / s / t TIME ..

shutdown / p

shutdown /s /f

After completing the steps, the computer will run the shutdown process depending on the options specified. If you choose to shutdown using the “shutdown -h” option, the computer will halt and display a message telling you that it is shutting down. If you choose to shutdown using the “shutdown -s” option, the computer will stop and show a message telling you that it is shutting down.

shutdown -h now

Shutdown/shut down system 5

Turn off specifying reason

  1. Open the Settings app and navigate to the Recording section.
  2. Scroll down and select the Recording option.
  3. Toggle off the device recording for the specific reason you want to stop it.

Right-click on the top result and select Run as administrator.

shutdown /s /dp:2:16

To shutdown the computer, type: shutdown /s /t 1 /du:2:16 The shutdown command will shut down the device, recording the reason “Operating System: Service pack (unplanned)”. ..

After completing the steps, the Windows 10 device will shut down and report the specified reason. ..

A 16-year-old girl was arrested after she allegedly stabbed her mother multiple times in their home. ..

/s /r to restart the computer on demand

A 16-year-old girl was arrested after she allegedly assaulted a police officer with a knife. ..

When a user logs on to their computer, Windows 10 checks for updates and then starts the shutdown process. If there are any updates waiting to be installed, the shutdown process will be delayed until after the updates are installed. If there are no updates waiting to be installed, Windows 10 will immediately start the shutdown process. ..

Shutdown with custom dialog message

  1. Open the System Preferences application and select the Security tab.
  2. In the dialog that appears, click on the “Show dialogs when user logs on” check box.
  3. Close the System Preferences application and log off your computer.

To open the Command Prompt as administrator, look for it in the Start menu and select Run as administrator. ..

Shutting down the computer: To shut down the computer, type the following command and press Enter: shutdown /s /t TIME /c “MESSAGE” In the command, replace TIME with the number of seconds before shutting down the computer and replace MESSAGE with the custom text that you want to display to the user. For example, this command displays “Updating XYZ Company Application” before shutting down the computer after one minute: shutdown /s /t 60 /c “Updating the XYZ company application.” You can also switch /s to the /r option if you want to display a reboot message in the command. See how: shutdown /r /t 60 /c “Updating the XYZ company application.” ..

After completing the steps, Windows 10 will display the message “Updating XYZ Company App” to the user and shut down the computer after 60 seconds.

Shutting down the XYZ company application and updating it.

To reboot your computer, type: /r This will display a reboot message in the command prompt. ..

Shutting down the XYZ company application and updating it.

How to shut down the remote computer with the shutdown command

Command-line tools can be used to remotely shut down or restart devices. However, this tool is limited and requires a few extra steps to use it effectively. ..

Configure remote device

  1. Open the Remote Desktop Connection application on the remote computer.
  2. In the Connect To dialog box, type \server\sharename and press Enter.
  3. In the Remote Desktop Connection window, click Connect.
  4. In the Security Warning dialog box, click Enable Remote Desktop and then click OK.
  5. In the Remote Desktop Connection window, under Viewing Options, select Allow All Users to Connect and then click OK.
  6. Under Authentication Methods, select Use Secure Password Authentication and then enter a password in the Password field.
  7. Under Log On As, type your user name (for example, Administrator) and press Enter.
  8. Under Access Rights For Users Who Are Not Administrators, select Allow All Users To Connect And Then Click OK to allow all users on the remote computer to connect to your session remotely using RDP connections without having to authenticate themselves first with a password or through a secure connection such as SSL/TLS encryption ..

Right-click on the top result and select Run as administrator.

To disable User Account Control for remote runs, type the following command and press Enter: reg add HKLMSoftwareMicrosoftwindowsCurrentVersionPoliciessystem /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 1 /f ..

After completing the steps, the device will be open to receive commands from authenticated users remotely. ..

If you want to roll back the changes to improve device security, you can use the same instructions described above, but in step #3, make sure you run this command: reg add HKLMSoftwareMicrosoftwindowsCurrentVersionPolicies system /v LocalAccountTokenFilterPolicy /t REG_DWORD /d 0 /f.

Turn off the remote device

  1. Open the command prompt.
  2. Type shutdown -h now.
  3. The computer will shut down and you will be able to access it from the command prompt again.

Command Prompt is a tool that you can use to run commands. You can right-click on the top result and select Run as administrator option. This will make Command Prompt your default choice when you want to run a command.

net use REMOTE-PCipc$ ..

C:> connect-office-pc This command connects to the Office-PC computer.

Confirm the account name located on the remote device and press Enter.

Enter your account password and press Enter. ..

Shutdown /r /m REMOTE-PC /t TIME /c “COMMENT” /f In the command, replace REMOTE-PC with the name or IP address of the remote computer. TIME to the number of seconds to wait before starting the shutdown process. COMMENT with the custom dialog you want to send to the user. For example, this command will notify the user and force restart the device named “Office-PC” by closing all applications without warning after one minute: shutdown /r /m Office-PC /t 60 /c “This PC will restart in one minute for maintenance.” /f ..

After completing the steps, the remote host will shut down as per the command setting.

The Office-PC will be shut down for maintenance in 60 seconds. ..

reset computer

Shutdown the computer on Office-PC and turn off the power to it.

If you want to disconnect from the IPC$ share, run the following command: “net use * /delete” (without quotes) and press Y to confirm. If you plan to use this command, you may need to remap previously connected network drives. ..

Final note

Shut down Windows 10 using the command prompt. This guide will show you how to do it in a simple and easy way.