A complete step-by-step guide to opening an elevated Command Prompt for system repair, network commands, disk tools, boot configuration, and advanced troubleshooting.
An administrator Command Prompt, also called an elevated Command Prompt, is a CMD window launched with administrative privileges. It can modify protected system files, change network settings, manage disks, repair Windows components, edit boot configuration, and run commands that a standard user session cannot execute.
When Command Prompt is opened normally, it runs with the rights of your current user account. Even if your account is an administrator account, Windows usually starts apps with standard permissions until you approve elevation through User Account Control (UAC). That approval is what makes the CMD session elevated.
You may need administrator privileges when using commands such as:
sfc /scannow, DISM /Online /Cleanup-Image /RestoreHealth.chkdsk, diskpart, manage-bde.netsh winsock reset, ipconfig /flushdns.bootrec, bcdedit, bcdboot.sc, net start, net stop.net user, net localgroup.This is the simplest and most reliable way to open an elevated Command Prompt in both Windows 10 and Windows 11.
If the window opens correctly, the title bar should usually say Administrator: Command Prompt.
The Run dialog is a quick keyboard-based method. The key detail is to use Ctrl + Shift + Enter, not just Enter.
cmd.cmd
Windows Terminal is the default console host on many Windows 11 installations. It can run PowerShell, Command Prompt, Azure Cloud Shell, and other profiles in tabs.
You now have a Command Prompt tab running with administrator privileges.
If you often use CMD instead of PowerShell, you can set it as the default profile:
Task Manager is useful when the Start menu, Search, or desktop is not responding. It can create a new elevated task directly.
cmd.cmd
This method is especially helpful when you need to restart Explorer, repair system files, or run a command while the shell is partially frozen.
You can start CMD directly from its executable file, cmd.exe. This is useful if search indexing is broken or shortcuts are missing.
C:\Windows\System32
C:\Windows\System32\cmd.exe is the standard Command Prompt executable. The folder name may look confusing, but System32 contains 64-bit system files on 64-bit Windows.
If you frequently use elevated CMD, create a dedicated shortcut and configure it to always request administrator rights.
C:\Windows\System32\cmd.exe
Every time you launch this shortcut, Windows will show a UAC prompt and then open an elevated Command Prompt.
If Windows does not boot normally, you can open Command Prompt from the Windows Recovery Environment. This mode is often used for boot repair, offline file operations, disk checks, and BCD recovery.
C:. Use diskpart, list volume, or dir to identify the correct Windows partition before running repair commands.
The easiest sign is the window title. An elevated window usually displays:
Administrator: Command Prompt
You can also run a command that requires elevated rights. For example:
net session
If Command Prompt is elevated, the command will not return the typical “Access is denied” message. If it is not elevated, Windows will usually report that administrator permissions are required.
If the option is missing, try another method such as Task Manager, File Explorer, or Windows Terminal. Also make sure you are right-clicking the actual Command Prompt app or cmd.exe, not a text file or search suggestion.
If UAC is disabled, Windows may not show the approval dialog. This is not recommended for everyday use. UAC helps prevent unauthorized elevation and should generally remain enabled.
Check that the title bar says Administrator: Command Prompt. Some commands also require ownership, special permissions, Safe Mode, Recovery Environment, or a specific Windows edition.
A standard user cannot approve elevation without administrator credentials. Sign in with an administrator account or ask the device owner or IT administrator to grant temporary access.
On corporate, school, or managed PCs, Command Prompt may be restricted by Group Policy or endpoint security software. In that case, use approved administrative tools or contact the organization’s IT department.
Here are common commands users run from an elevated Command Prompt:
| Command | Purpose | Typical Use Case |
|---|---|---|
sfc /scannow |
Scans and repairs protected Windows system files. | Broken system components, crashes, missing files. |
DISM /Online /Cleanup-Image /RestoreHealth |
Repairs the Windows component store. | Windows Update errors, SFC repair failures. |
chkdsk C: /f |
Checks the disk and schedules repairs. | File system errors, disk warnings, unexpected shutdowns. |
ipconfig /flushdns |
Clears the DNS resolver cache. | Website loading problems, DNS changes. |
netsh winsock reset |
Resets the Winsock catalog. | Network connection problems after VPN, proxy, or malware cleanup. |
bcdedit |
Views or changes boot configuration data. | Boot menu repair, Safe Mode configuration, dual-boot settings. |
DISM /Online /Cleanup-Image /RestoreHealth first, then run sfc /scannow. This sequence helps ensure that SFC uses a healthy component store.
format, diskpart, and bcdboot can affect the wrong disk if used carelessly.Press Windows, type cmd, then press Ctrl + Shift + Enter. Approve the UAC prompt to open an elevated Command Prompt.
Only if you are already signed in as an administrator and UAC only requires confirmation. If you are using a standard account, Windows will require administrator credentials.
Windows 11 often uses Windows Terminal as the default console interface. You can open Terminal (Admin) and then choose a Command Prompt tab from the tab menu.
No. PowerShell and Command Prompt are different shells. Many basic commands work in both, but some CMD commands, batch syntax, and PowerShell cmdlets behave differently.
Look at the title bar. It should say Administrator: Command Prompt. You can also run net session; a non-elevated session usually returns an access-denied message.
Yes. Create a shortcut to C:\Windows\System32\cmd.exe, open its properties, click Advanced, and enable Run as administrator.
For most users, the best method is Windows Search: type cmd, right-click Command Prompt, and choose Run as administrator. For keyboard users, Windows + R, cmd, and Ctrl + Shift + Enter is even faster.
If Windows is not working correctly, use Task Manager to create an elevated CMD task, or open Command Prompt from Windows Recovery Environment for offline repair. Always verify that the title bar says Administrator: Command Prompt before running commands that require system-level access.