Tips to Shut Down Windows 10 Using Command Prompt

Tips to Shut Down Windows 10 Using Command Prompt

Hello Geeky, so today we are focusing on How to Shut Down Windows 10 Using Command Prompt. So please read this tutorial carefully so you may comprehend it in a better helpful way.

Guide: How to Shut Down Windows 10 Using Command Prompt

Although you can exit, shut down, restart, or hibernate your computer from the Start menu or lock screen in Windows 10, the program also has a shutdown.exe program, which lets you accomplish the same things from Command Prompt.

It is also a more powerful tool because, in addition to the standard functions, the command line tool allows you to record the reason for the event, displaying personal messages to the end user , and even shut down and restart remote applications. This utility is always available. However, if you spend most of your time in the Command Prompt terminal, need to write a script that includes the reboot of the computer, or are making system changes and you want to record a reason for a restart or shutdown event, will come in regularly. money.

In Windows 10 this guidea will show you how to use the shutdown.exe command line application to shut down and restart local and remote devices in different ways.

How to do you

How to turn off the computer with the shutdown command

To turn off the computer manually with the Command Prompt, use the following steps:

  • Open Start.
  • Search for The Right Orderright-click the top right, and select Acting as an IT option.
  • Press the following command to freely turn off the device after a minute and press Enter: lock / s
  • Type the following command to shut down the device after a specific time and press Enter: lock / s / t TIME

    In order, replace CLOCK for a second to wait before the machines start the shutdown process.

    For example, this command turns off the computer after five seconds:

    lock / s / t 5

  • Press the following command to shut down the computer without stopping or warning and press Enter: lock / p
  • Press the next command to shut down, force all apps to lock without warning, then press Enter: lock / s / f

Once you complete the steps, the computer will execute the shutdown process based on your specific options.

Keep a specific purpose

To turn off device recording for a specific purpose, use the following steps:

  • Open Start.
  • Search for The Right Orderright-click the top right, and select Acting as an IT option.
  • Enter the following command to have a reason to shut down and press Enter: shutdown / s / dp: IMPORTANT-NUMBER: Small-NUMBER In the command, change the SPECIAL-NUMBER: KEKERE for numbers that represent purpose. Can you find all the major and minor reason numbers available by doing the shutdown /? command.

    For example, this command shuts down the device, recording “Operating System: Service (Planned)” purpose:

    lock / s / t 1 / dp: 2:16

    You can also change / s for the / r option if you want to specify a reason for the reboot in the command. Here is how:

    lock / r / t 1 / dp: 2:16

  • Type the following command to force off the computer explaining a reason as unexpected and press Enter: closed / s / t 1 / du: 2:16

    The above command will lock the device, recording the purpose of “Operating System: Service Pack (Unexpected)”.

After completing the steps, the Windows 10 device will lock and log in for a specific purpose.

You can view the login registry at all times Event viewer > Windows accounts > Line up and look for “Info” events with Olonwe32 source and with “event ID” of 1074.

Delete with custom dialog message

To shut down a computer displaying a text message alerting the service user, use the following steps:

  • Open Start.
  • Search for The Right Orderright-click the top right, and select Acting as an IT option.
  • Type the following command into the lock device that displays the custom dialog message and press Enter: shutdown / s / t TIME / c “Message” In the command, replace CLOCK including the number of seconds before shutting down computers, and replacing NOTICE with the custom text you want to introduce to the user.

    For example, this command displays “XYZ company application update” before shutting down the computer after a minute:

    shutdown / s / t 60 / c “Updating XYZ Center.”

    You can also change / s for the / r option if you want to show the message for reboot in that command. Here is how:

    shutdown / r / t 60 / c “Updating XYZ Center.”

Once the steps are completed, Windows 10 will display the “XYZ Company Update” message to the user and shut down the computer after 60 seconds.

How to turn off the computer remotely with the shutdown command

The lock command line tool also allows you to turn off or restart a device remotely. However, the tool is limited, and you will have to take some extra steps to make it work.

Configure the device remotely

To set up To remotely execute computer executions, use the following steps:

  • Open Start.
  • Search for The Right Orderright-click the top right, and select Acting as an IT option.
  • Enter the following command to activate User Account Control for remote executions and click Enter: reg fi HKLM Software Microsoft Windows CurrentVersion Process settings / v LocalAccountTokenFilterPolicy / t REG_DWORD / d 1 / f

After completing the steps, the device will open to receive remote commands from certified users.

If you want to make changes to improve device security, you can use the same procedures outlined above, but turning on step No .. 3make sure you run the following command: reg add HKLM Software Microsoft windows CurrentVersion Procedure settings / v LocalAccountTokenFilterPolicy / t REG_DWORD / d 0 / f.

Remote control device

To use the Command Prompt to shut down a computer remotely, use the following steps:

  • Open Start.
  • Search for The Right Orderright-click the top right, and select Acting as an IT option.
  • Type the following command to connect to the IPC $ partition (or null connection) and click Enter: net lo REMOTE-PC ipc $ In command, replace REMOTE-PC for the name or IP address of the remote computer.

For example, this command connects to your Office-PC computer:

net use Office-PC ipc $

  • Confirm the account name on the remote device and click Enter.
  • Confirm the account password and enter Enter.
  • Type the following command to restart the remote computer and type enter: shutdown / r / m REMOTE-PC / t TIME / c “COMMENT” / in command, replace REMOTE-PC for the name or IP address of the remote computer, CLOCK for a number of seconds to wait before starting the shutdown process, then replace Comment for the custom communication you want to send the user.

    For example, this command will notify the user, and will force the device to restart the so-called “Office-PC” shut down all applications without warning after a minute:

    shutdown / r / m Office-PC / t 60 / c “This PC will restart in one minute for maintenance.” / f

    If no one is using the computer, you can send an order to restart the device immediately. Here is an example:

    closed / r / m Office-PC / t 0 / f

Once you complete the steps, the remote host will run off according to the command line.

If you want to disconnect from the IPC $ partition, perform the following command: “use average * / delete” (without definitions) and press Y to confirm. If you plan to use this command, you may need to repair previously connected network drivers.

Faq

Guide about How to Shut Down Windows 10 Using Command Prompt


In this guide, we told you about the How to Shut Down Windows 10 Using Command Prompt; please read all steps above so that you understand How to Shut Down Windows 10 Using Command Prompt in case if you need any assistance from us, then contact us.

How this tutorial or guide assisting you?


So in this guide, we discuss the How to Shut Down Windows 10 Using Command Prompt, which undoubtedly benefits you.



Final note

I hope you like the guide How to Shut Down Windows 10 Using Command Prompt. In case if you have any queries regards this article/tutorial you may ask us. Also, please share your love by sharing this article with your friends and family.

Tips to Shut Down Windows 10 Using Command Prompt
Tips to Shut Down Windows 10 Using Command Prompt
Trickbugs: Get the latest Trick and Tips
Logo
Enable registration in settings - general