Press Shift+F10 during setup for an admin command prompt — via Microsoft Learn
On the first setup screen after installation (the out-of-box experience, OOBE), Shift+F10 opens a Command Prompt that already runs as administrator. It's handy for checking disks, loading a driver with pnputil, or reading setup logs before you finish setup.
Takes effect right away
How to do it
- When the first OOBE screen appears, press Shift + F10.
- Type
exitto close the window and carry on with setup.
Everything you run in this window runs with full administrator rights, so be careful. In upgrades started from setup.exe this shortcut is turned off by default; see the /DiagnosticPrompt entry.
Sources
- OA 3.0 command line and configuration file syntax — 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.