Allow the Shift+F10 command prompt during an in-place upgrade — via Microsoft Learn
When you upgrade by running setup.exe from mounted media, the Shift+F10 command prompt is turned off by default. Starting setup with /DiagnosticPrompt enable turns it on, so you can poke around if the upgrade gets stuck.
Takes effect right away
The easy way
- Mount the Windows ISO (double-click it). Note the drive letter it gets;
D:is just an example. - From an elevated Command Prompt, run the command with the right drive letter.
- During setup, press Shift + F10 for a command prompt.
Command
Run in an administrator Command Prompt / Terminal window.
D:\setup.exe /DiagnosticPrompt enableThis only lasts for that run of setup; nothing is changed permanently, so there's nothing to undo. Without the switch, the default is disable. Available since Windows 10 version 1703.Sources
- Windows Setup command-line options — 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.