Shift+F10 won't open Command Prompt if the keyboard sends a media shortcut instead of F10, or if the Windows setup image disables that prompt. Hold Fn with Shift+F10 first on a laptop, then check which setup screen you're actually using.
A command window that opens but rejects a command is a different problem. The shortcut has worked in that case; repeating it won't restore a removed setup script or make an old command valid.
In this guide
1. Send the F10 key, rather than its second function
Click the setup window so it receives your keystrokes. Hold Shift, press F10, then release both. If nothing happens on a laptop keyboard, hold Shift + Fn, press F10, and release the keys.
The top row on many laptops does two jobs. A key marked F10 can also control sound, brightness, or another feature. Fn changes which job the key performs, so the extra key can be all that's missing.
On Surface keyboards with a function row, the top-row special keys double as function keys when used with Fn. Covers have different layouts, so check the labels on the keys before trying a function-lock shortcut.

Microsoft's Fn and F Lock instructions explain why those keys can send different commands. If your keyboard has a separate F Lock key, it switches between the two sets.
Watch for a black Command Prompt window. Its prompt can show a setup or recovery drive rather than the usual Windows drive, which is normal outside the installed operating system.
If the window appears, stop changing keyboard settings. If a volume indicator appears instead, the keyboard is still sending its media command. Check the laptop's own keyboard manual for its Fn behavior before changing firmware settings.
2. Try a wired keyboard when the key combination fails
Plug a basic wired keyboard into the PC's USB port and repeat Shift+F10. Use its F Lock key if it has one. This lets you try the shortcut without depending on how the laptop handles its top-row keys.
Skip a Bluetooth keyboard that hasn't been paired during setup. A keyboard working on another computer doesn't mean this fresh Windows installation can receive its wireless keystrokes yet.
On a detachable laptop, reseat the keyboard cover if ordinary keys aren't responding either. Try selecting a text box and entering a harmless character, then remove it. That checks whether setup receives any typing at all.
If the wired keyboard opens Command Prompt, check the built-in keyboard's function keys and connection. Continue setup with the working keyboard, then check keyboard drivers and instructions on the PC maker's page for your model.
If ordinary typing works on both keyboards but neither opens the prompt, check whether this installer allows Command Prompt. Don't treat that result as proof of a broken F10 key.
For a failure involving one particular laptop key in normal Windows too, use the Dell Shift-key checks only if that is your model and symptom. Setup permissions are a different issue.
3. Check whether the installation permits a prompt
Windows Setup has a /DiagnosticPrompt option that controls this access. With Enable, Shift+F10 can open Command Prompt. With Disable, it isn't available during the offline and initial setup stages.
The documented default for that option is Disable. An organization or manufacturer can use this setting to turn off Command Prompt in its installer, even if a tutorial shows it opening.
If you're preparing an installation, you can use this supported option when starting Setup:
setup /diagnosticprompt enable
This is an option used when launching Windows Setup, not a command you can type into a prompt that won't open. Don't restart an installation that's already in progress just to try this option without planning how you'll continue setup.
The option is supported when Setup is launched from Windows 10 or later. Support when launching Setup from Windows PE, the small installation environment, starts with Windows 11 version 24H2. Older media has different support limits.
If IT prepared the USB installer or deployed the machine, ask whether DiagnosticPrompt is disabled in that image. Give them the exact setup screen and the result from the wired keyboard, so they can check the deployment setting.
I'd check with the image owner before rebuilding an installer. A missing diagnostic window is a setup choice that they may have made on purpose, and a new keyboard can't change it.
4. Separate a missing prompt from a failed command
Once Command Prompt opens, read any error after typing a command. A message saying a command isn't recognized means Windows can't run that command as entered; it doesn't mean Shift+F10 is blocked.
Check spelling, the command's full path, and whether the instructions apply to the installed release. Commands copied from older Windows setup walkthroughs aren't automatically present in newer installation media.
Don't keep trying account-bypass commands just because an old guide used them. Opening a diagnostic shell and changing the account requirements are separate tasks, with separate version limits.
If you're using the shell because setup can't see a network adapter, request the manufacturer's Windows 11 network driver matching this PC model. Tell support whether no networks appear or the password is being rejected.
If the underlying problem is that the computer started from installation media, deal with the boot source before launching a second installation. The shortcut doesn't decide which Windows copy starts.
5. Use recovery tools for an existing Windows installation
If you're repairing a PC that already has Windows, the recovery tools offer their own Command Prompt. You can use that route instead of relying on the shortcut while setting up a fresh installation.
When Windows opens, go to Settings > System > Recovery. Beside Advanced startup, select Restart now. After restarting into recovery, choose Troubleshoot > Advanced options > Command Prompt when offered.
If Windows doesn't start, boot suitable Windows installation media. On the initial setup screen, select Next, then Repair my PC, and continue into the recovery tools. This opens repair tools instead of a clean installation.
For a Windows drive encrypted with BitLocker, get its recovery key ready first. Some recovery tools require it to work with the drive. A recovery prompt doesn't remove the drive's encryption.
If the maker's installation still blocks the shortcut, ask the maker's support team if Command Prompt is available in that installer. For a work PC, let IT supply approved recovery media rather than replacing the deployment yourself.
The Short Version
Try Shift+Fn+F10, then a wired keyboard. If typing works but the prompt doesn't open, check the image's DiagnosticPrompt setting with its owner. Use recovery tools for repairs, and treat a rejected command separately from a failed shortcut.
Checked November 29, 2026.







