Skip to content

Allow the Shift+F10 command prompt during an in-place upgrade — via Microsoft Learn

Commandlow riskNeeds adminWindows 11Windows 10 (1703+)

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

  1. Mount the Windows ISO (double-click it). Note the drive letter it gets; D: is just an example.
  2. From an elevated Command Prompt, run the command with the right drive letter.
  3. During setup, press Shift + F10 for a command prompt.

Command

Run in an administrator Command Prompt / Terminal window.

D:\setup.exe /DiagnosticPrompt enable
This 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

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.

setupupgradediagnosticpromptcommand prompttroubleshooting

More in Setup & Install