General Restart Computer in Windows 11


  • Staff
Restart_banner.png

This tutorial will show you different ways on how to restart your local Windows 11 computer.

Restarting the computer will sign out all users, shut down the computer, and then automatically reboot the computer.

When shutting down your PC, any open supported apps are registered for application restart. After restart, these apps will re-open automatically when you sign in.

The feature to restore applications that have registered for application restart after you restart or shutdown has been set to only occur for users that have turned on (default) Automatically save my restartable apps and restart them when I sign back in.


If you enable Use my sign-in info to automatically finish setting up after an update for your account, it will disable getting the "Someone else is still using this PC. If you restart now, they could lose unsaved work" message when any user restarts the computer while your account is still signed in.

If you enable the Sign-in and lock last interactive user automatically after a restart policy for all users, it will disable getting the "Someone else is still using this PC. If you restart now, they could lose unsaved work" message when any user restarts the computer while any account is still signed in.

Somone_else_is_still_using_this_PC.png



Contents





Option One

Restart Computer from Start menu


1 Open the Start menu :win:. (see screenshot below)

2 Click/tap on the Power button.

3 Click/tap on Restart in the Power menu.

Restart_from_Start_menu.jpg





Option Two

Restart Computer from Win+X Quick Link Menu


1 Perform one of the following actions: (see screenshot below)
  • Press the Win + X keys, press the U key, and press the R key.
  • Open the Win+X Quick Link menu, click/tap on Shut down or sign out, and click/tap on Restart.
Restart_from_Win+X.jpg





Option Three

Restart Computer from Alt+F4 Shut Down Windows Dialog


1 Click/tap on the desktop (Win+D).

2 Press the Alt + F4 keys.

3 Select Restart in the drop menu, and click/tap on OK. (see screenshot below)

Restart_from_Alt+F4.png





Option Four

Restart Computer from Ctrl+Alt+Del Screen


1 Press the Ctrl + Alt + Del keys.

2 Click/tap on the Power button. (see screenshot below)

3 Click/tap on Restart in the Power menu.

Restart_from_Ctrl+Alt+Del.png





Option Five

Restart Computer from Sign-in Screen


1 While on the sign-in screen: (see screenshot below)

2 Click/tap on the Power button.

3 Click/tap on Restart in the Power menu.

Restart_from_sign-in.jpg





Option Six

Restart Computer from PowerShell


1 Open Windows Terminal, and select Windows PowerShell. (see screenshot below)

Windows_Terminal_PowerShell.png

2 Copy and paste the command below you want to use into PowerShell, and press Enter.

To see all Restart-Computer command usage options, see: Restart-Computer | Microsoft Docs


restart-computer

Performs a full shutdown and restart the computer.


OR

restart-computer -force

Forces running applications to close, and then performs a full shutdown and restart the computer.


OR

restart-computer -confirm

Prompts you to confirm before performing a full shutdown and restart the computer.
PowerShell_confirm.png


OR

restart-computer -force -confirm

Prompts you to confirm before forces running applications to close, and then performs a full shutdown and restart the computer.
PowerShell_confirm.png






Option Seven

Restart Computer from Command Prompt


1 Open Windows Terminal, and select Command Prompt. (see screenshot below)

Windows_Terminal_command_prompt.png

2 Copy and paste the command below you want to use into Command Prompt, and press Enter.

shutdown /r

Performs a full shutdown and restart the computer.


OR

shutdown /r /f /t 0

Immediately force running applications to close, and then performs a full shutdown and restart the computer.


OR

shutdown /r /t xxx

Performs a full shutdown and restart the computer after a timeout period you specified in seconds.

Substitute xxx in the command above with between 0-315360000 seconds you want for the timeout period. If the timeout period is greater than 0, the /f (force) parameter is implied.


OR

shutdown /r /c "Your comment here"

Displays a warning with your comment, and performs a full shutdown and restart the computer.

Substitute Your comment here in the command above with the comment you want up to 512 characters.

restart_notice.png


OR

shutdown /r /t xxx /c "Your comment here"

Displays a warning notice with your comment, and performs a full shutdown and restart the computer after a timeout period you specified in seconds.

Substitute Your comment here in the command above with the comment you want up to 512 characters.

Substitute xxx in the command above with between 0-315360000 seconds you want for the timeout period. If the timeout period is greater than 0, the /f (force) parameter is implied.

restart_notification.png restart_notice.png


OR

shutdown /g

Performs a full shutdown and restart the computer. Will restart any applications that were open when you restarted after the system is rebooted and you sign in.


OR

shutdown /g /c "Your comment here"

Displays a warning with your comment, and performs a full shutdown and restart the computer. Will restart any applications that were open when you restarted after the system is rebooted and you sign in.

Substitute Your comment here in the command above with the comment you want up to 512 characters.

restart_notice.png


OR

shutdown /g /t xxx /c "Your comment here"

Displays a warning notice with your comment, and performs a full shutdown and restart the computer after a timeout period you specified in seconds. Will restart any applications that were open when you restarted after the system is rebooted and you sign in.

Substitute Your comment here in the command above with the comment you want up to 512 characters.

Substitute xxx in the command above with between 0-315360000 seconds you want for the timeout period. If the timeout period is greater than 0, the /f (force) parameter is implied.

restart_notification.png restart_notice.png






Option Eight

Emergency Restart Computer


This option should only be used as a last resort.

This option will immediately restart Windows 11. Any unsaved data will be lost.


1 Press the Ctrl + Alt + Del keys.

2 Press and hold the Ctrl key, click/tap on the Power button, and release the Ctrl key. (see screenshot below)

Emergency_Restart-1.png

3 Click/tap on OK when ready to restart the computer. (see screenshot below)

Emergency_Restart-2.png


That's it,
Shawn Brink


 
Last edited:
and you can also open notepad paste
Set WSHShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "C:\WINDOWS\system32\shutdown.exe -r -t 0"

put the extesnion .vbs and there you have it. a shortcut on desktop to restart windows 11.
 

My Computer

System One

  • OS
    windows 11
and you can also open notepad paste
Set WSHShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "C:\WINDOWS\system32\shutdown.exe -r -t 0"

put the extesnion .vbs and there you have it. a shortcut on desktop to restart windows 11.
Hello, :-)

If you like, you could create a shortcut with only the command instead.

shutdown.exe -r -t 0
 

My Computers

System One System Two

  • OS
    Windows 11 Pro for Workstations
    Computer type
    PC/Desktop
    Manufacturer/Model
    Custom self build
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING (11GB GDDR5X)
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G75 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2,
    4TB Samsung 990 PRO M.2,
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3 wall mounted
    Cooling
    Corsair Hydro H115i
    Keyboard
    Logitech wireless K800
    Mouse
    Logitech MX Master 3
    Internet Speed
    1 Gbps Download and 35 Mbps Upload
    Browser
    Google Chrome
    Antivirus
    Microsoft Defender and Malwarebytes Premium
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Galaxy S23 Plus phone
  • Operating System
    Windows 11 Pro
    Computer type
    Laptop
    Manufacturer/Model
    HP Spectre x360 2in1 14-eu0098nr (2024)
    CPU
    Intel Core Ultra 7 155H 4.8 GHz
    Memory
    16 GB LPDDR5x-7467 MHz
    Graphics card(s)
    Integrated Intel Arc
    Sound Card
    Poly Studio
    Monitor(s) Displays
    14" 2.8K OLED multitouch
    Screen Resolution
    2880 x 1800
    Hard Drives
    2 TB PCIe NVMe M.2 SSD
    Internet Speed
    Intel Wi-Fi 7 BE200 (2x2) and Bluetooth 5.4
    Browser
    Chrome and Edge
    Antivirus
    Windows Defender and Malwarebytes Premium
and you can also open notepad paste
Set WSHShell = WScript.CreateObject("WScript.Shell")
WshShell.Run "C:\WINDOWS\system32\shutdown.exe -r -t 0"

put the extesnion .vbs and there you have it. a shortcut on desktop to restart windows 11.
Or, use this script. It will run specific shutdown commands if you pressed the key corresponds in the screen.

This is my first script. I didn't join TF in this time i created this script. Thanks.

 

Attachments

  • Shutdown Options.bat
    1.6 KB · Views: 178

My Computer

System One

  • OS
    EndeavourOS, Windows 11 Pro
    Computer type
    PC/Desktop
    Manufacturer/Model
    custom PC
    CPU
    Core i5 8400
    Motherboard
    Gigabyte B360M-HD3
    Memory
    8gb DDR4-2400
    Graphics Card(s)
    iGPU
    Sound Card
    Realtek
    Monitor(s) Displays
    some generic 1080p 75hz monitor * 2
    Screen Resolution
    1080p * 2
    Hard Drives
    GIGABYTE NVMe SSD 256GB (GP-GSM2NE3256GNTD)
    Internet Speed
    200MBit/s
    Antivirus
    WD

Latest Support Threads

Back
Top Bottom