User Tools

Site Tools


cmd:restart_computer

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
cmd:restart_computer [2026/08/25 14:57] thekurucmd:restart_computer [2026/08/25 15:02] (current) thekuru
Line 1: Line 1:
-===== Restart computer =====+==== Restart computer ==== 
 +----
  
 **shutdown -t 0 -r -f** **shutdown -t 0 -r -f**
  
-  shutdownInvokes the built-in Windows shutdown utility+Possible flags: 
-  * -t 0Sets the time delay to 0 seconds, triggering the action instantly+  -s :: shut down 
-  * -rSpecifies reboot (restart) rather than a complete power down (-s)+  * -r :: restart 
-  * -fForces all running applications to close immediately without displaying warning or asking the user to save open work+  * -l :: log off 
 +  * -h :: hibernate 
 +  * -i :: "Interactive mode". Instead of performing an action, it displays a GUI dialog 
 +  * -a :: aborts a previous shutdown command 
 +  * -f :: forces programs to exitPrevents the shutdown process from getting stuck 
 +  * -t <seconds> :: sets the time until shutdownUse -t 0 to shutdown immediately 
 +  * -c <message> :adds shutdown messageThe message will end up in the Event Log 
 +  * -:: forces "yes" answer to all shutdown queries
cmd/restart_computer.1787659070.txt.gz · Last modified: by thekuru