Skip to content Skip to sidebar Skip to footer

Shut Windows Down Wont Start Again

The Shutdown.exe is an built-in Windows command line tool that allows to reboot, shutdown, put your computer to sleep, hibernate or cease a user session. In this guide, nosotros'll show the basic examples of using the shutdown command in Windows. All commands discussed above are run in the Run dialog box — Win+R ->, in the command prompt (cmd.exe) or in PowerShell.

The shutdown command has the following syntax:
shutdown [/i | /l | /s | /r | /g | /a | /p | /h | /eastward | /o] [/hybrid] [/soft] [/fw] [/f] [/m \\computer][/t 30][/d [p|u:]xx:yy [/c "annotate"]]
The shutdown.exe command in Windows

Every bit you can meet, the command has quite a lot of options, and tin exist used to shutdown/restart a local or remote computer.

How to Shutdown Windows Using the Command Prompt?

To shutdown Windows your estimator, use the shutdown command with the /south key.

shutdown /due south

Reboot Windows from the CMD

In order to reboot your calculator, use the /r parameter. Later running it, Windows will be will gracefully restarted.

shutdown /r

shutdown /r -reboot windows from cmd

End a User Session

To end the electric current user session (logoff), run this control:

shutdown /l

shutdown /l - logoff current user

This command works in the aforementioned way as logoff.exe command.

How to Hide Windows?

To hibernate your computer, run this control:

shutdown /h

In the hibernate way, the whole retentiveness contents is written to the hiberfil.sys file on the local disk and the reckoner is put to sleep mode thus lowering the free energy consumption

How to Notify Logged-on Users Before Reboot or Shutdown?

You can notify all logged-on Windows users about the upcoming shutdown/reboot of the computer or server by sending a bulletin to all active sessions. As a dominion, this feature is used on RDS servers with several users working on them at the aforementioned time in their own RDP sessions.

shutdown /r /c "This server will exist restarted in 60 seconds."

Delayed Shutdown/Reboot of a Reckoner Using the Timer

You tin can shutdown or restart the calculator with a certain delay (on timer). Using the /t option, you tin specify the time bridge after which the computer/server volition exist shutdown or rebooted. Thus you lot can provide your users some fourth dimension to salve open files and close the apps correctly. It is convenient to use this option together with the notify message. In this example we inform the users that Windows will be shutdown in x minutes (600 seconds).

shutdown /south /t 600 /c "The server will exist shutdown in 10 minutes. Save your piece of work!"

A user volition see a notification nearly the planned shutdown:

You're most to exist signed out

windows shutdown command - You're about to be signed out. Your Windows will shut down in 10 minutes

If the delay is too long, say, 100 minutes (vi,000 seconds), a popup window appears in the lower correct corner of the screen: You lot're nigh to be signed out. Your Windows will shutdown in 100 minutes.

You're about to be signed out. Your Windows will shut down in 100 minutes

Cancel Windows Shutdown or Restart

After running Windows shutdown or reboot command, the shutdown tool waits sixty seconds by default without doing anything. An administrator can cancel the restart or shutdown of the device by running this command during this time:

shutdown /a

Subsequently you cancel the shutdown, you'll see the following popup window in the lower right corner of the screen: Logoff is cancelled. The scheduled shutdown has been cancelled.

Logoff is cancelled. The scheduled shutdown has been cancelled

Force an Immediate Restart of the Calculator

To shutdown or reboot a computer immediately without waiting for lx seconds, specify 0 every bit a value of the /t parameter. For instance, to restart the figurer immediately:

shutdown /r /t 0

The /f key is very important. I utilise it nearly ever when shutting down or restarting Windows servers. This attribute forces close all running programs and processes without user confirmation (we won't look till the users confirm closing all applications on the RDS server since we tin can never go it).

The adjacent command will restart the computer and automatically run all registered apps later the restart (apps registered in the organisation using RegisterApplicationRestart API are meant hither).

shutdown /g

Hot to Remotely Shutdown or Restart a Windows Computers?

Yous tin can reboot a remote computer if you accept the network admission to it, and the account you are using to run the shutdown command must be a member of the local administrators grouping on the remote figurer (server):

shutdown /r /t 120 /m \\192.168.ane.210

shutdown remote windows host

If all the conditions described above are met, simply when running the shutdown control the fault "Access denied (5)" appears, allow the remote access to the admin shares (C$, ADMIN$) on the remote computer by changing the value of LocalAccountTokenFilterPolicy parameter to 1.

reg add "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System" /v "LocalAccountTokenFilterPolicy" /t REG_DWORD /d i /f

If you lot demand to restart multiple computers remotely, you tin salve the list of computers to a text file and run a remote reboot of all computers using a simple PowerShell script:

$sh_msg = "Your computer will be automatically restarted in 10 minutes. Save your files and close running apps"
$sh_delay = 600 # seconds
$computers = gc C:\PS\PC-list.txt
foreach ($comp in $computers)
{
& 'C:\Windows\System32\SHUTDOWN.exe' "-m \\$comp -r -c $sh_msg -t $sh_delay"
}

Shutdown Command Graphical Interface

Those who don't feel comfy to work in the command prompt can use the graphical interface of the shutdown.exe command. To call the remote shutdown dialog, use the command:

shutdown /i

remote shutdown GIU dialog

Equally you can run into, you lot can add together multiple computers in the remote shutdown dialog to exist rebooted/shutdown, specify the notification text and specify the reason of the shutdown to be saved in the Windows event log.

How to Reboot Computer Using Shortcut?

To make it more user-friendly to users, you lot can create shortcuts to restart or shutdown a computer with the required settings on the desktop. The shortcut may be useful when you demand to restart the computer from the RDP session when there are no options to restart or shutdown the computer in the Start menu.

shutdown shortcut

If you want your calculator or server to restart/shutdown at the specific time, you tin add together the shutdown command with the sure parameters to Windows Task Scheduler (taskschd.msc).

For example, this Scheduler chore will restart the computer daily at 12 AM.

shedule a shutdown task

Or y'all can create a new Scheduler task with PowerShell:

$Trigger= New-ScheduledTaskTrigger -At 00:00am -Daily
$User= "NT Authorisation\SYSTEM"
$Action= New-ScheduledTaskAction -Execute "shutdown.exe" -Argument "–f –r –t 120"
Annals-ScheduledTask -TaskName "RebootEvertyNight_PS" -Trigger $Trigger -User $User -Activity $Action -RunLevel Highest –Strength

goldenanceent.blogspot.com

Source: http://woshub.com/shutdown-restart-windows-cmd/

Postar um comentário for "Shut Windows Down Wont Start Again"