Skip to content

Restart and reopen your registered apps (shutdown /g) — via Microsoft Learn

Commandlow riskWindows 11Windows 10

A full restart that, after you sign back in, relaunches apps that registered for restart — handy after installing something that needs a reboot when you don't want to rebuild your workspace by hand.

Takes effect right away

Command

Run in a normal Command Prompt / Terminal window.

shutdown /g /t 0

Undo

rem Nothing to undo. To cancel a delayed one: shutdown /a
Only apps that registered for restart come back. If Automatic Restart Sign-On is enabled, Windows also signs the last user in and locks the PC before relaunching them. /sg does the same but shuts down, reopening apps at the next boot.

Sources

Source reviewed
2026-11-02
Link checked
2026-11-02
Tested hands-on
Not by Oddbyte.Me

Oddbyte.Me hasn't tried this on every Windows build, so keep the undo handy.

shutdownrestart appsreopen appsrestart

More in Sign-in, Boot & Shutdown