Restart and reopen your registered apps (shutdown /g) — via Microsoft Learn
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 0Undo
rem Nothing to undo. To cancel a delayed one: shutdown /aOnly 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
- shutdown — by Microsoft Learn
- 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.