Skip to content

Press Shift+F10 during setup for an admin command prompt — via Microsoft Learn

Trickmedium riskNeeds adminWindows 11Windows 10

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

  1. When the first OOBE screen appears, press Shift + F10.
  2. Type exit to 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

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.

oobesetupcommand promptshift f10install

More in Setup & Install