To open an Administrator Command Prompt from a standard Command Prompt window, you need to run a specific command that elevates privileges using Task Manager or the built-in shell execution method. This gives you elevated permissions to perform system-level tasks like modifying protected files, resetting services, or configuring security policies. You do not need to close the current window, but you must have administrator rights on the computer—standard user accounts cannot elevate privileges this way.

What You'll Need

  • A Windows PC running Windows 10 or Windows 11
  • A user account with administrator privileges (not a standard user)
  • Access to the current Command Prompt window (cmd.exe) already open

Step-by-Step

  1. Ensure you already have a regular (non-admin) Command Prompt window open. If not, press Win + R to open Run, type cmd, and press Enter to open one.
  2. In the Command Prompt window, type the following command exactly as shown, then press Enter: start cmd /k title Administrator: Command Prompt
  3. When prompted by User Account Control (UAC), click Yes to allow the new Command Prompt to run with administrator privileges. If no prompt appears, the account lacks admin rights or the system is misconfigured.
  4. A new Command Prompt window will open. You will see the title bar now reads Administrator: Command Prompt (or just Command Prompt, depending on your system), and the prompt line will typically show C:\Windows\System32> or similar, confirming elevated status.
  5. Verify elevation by typing whoami /priv and pressing Enter. Look for the SeShutdownPrivilege or SeChangeNotifyPrivilege entries—they should show Enabled for the current session. Alternatively, run net session—if it returns The command completed successfully without error, you have admin rights.

Common Mistakes

  • Typing runas /user:Administrator cmd without specifying credentials or using the correct syntax—this often fails because it prompts for a password you may not know or the built-in Administrator account is disabled.
  • Using cmd /k without start, which tries to open a new prompt in the same window instead of launching a separate elevated process.
  • Forgetting to click Yes on the UAC prompt before it times out (default timeout is 5 seconds), causing the command to silently fail.
  • Assuming a standard user account can elevate—elevation requires explicit admin rights; no command can bypass this security feature.
  • Confusing cmd with PowerShell—the steps here apply only to Command Prompt (cmd.exe), not PowerShell.

Tips

  • To avoid UAC prompts in the future for repeated tasks, you can temporarily lower UAC settings via msconfig or the Control Panel, but this reduces security—only do this on trusted machines and revert afterward.
  • Save time by creating a shortcut with the target %windir%\System32\cmd.exe /k title Admin CMD and setting it to Run as administrator (right-click shortcut > Properties > Advanced > Run as administrator).
  • Keep the original non-elevated prompt open for non-admin tasks (like running ipconfig or checking network status) to avoid unnecessary privilege escalation.
  • Use the /k flag instead of /c so the new window stays open after the command runs. /c would close it immediately after launching, making verification impossible.
  • If you frequently need admin access, pin the elevated Command Prompt to the taskbar: right-click the elevated window’s title bar > Pin to taskbar.

Troubleshooting

If the command fails to open an elevated prompt, follow these checks in order:

  1. Check account type: Run net user %username% in the current CMD window. Under Local Group Memberships, verify Administrators appears. If not, you lack rights—contact your system administrator.
  2. UAC settings: Open msconfig, go to the Tools tab, select Change UAC settings, and click Launch. Ensure the slider is not set to Never notify; if it is, move it up and restart. Alternatively, run regedit as admin and navigate to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System; ensure EnableLUA is set to 1.
  3. Group Policy restrictions: Some corporate or managed devices disable admin elevation. Try gpresult /r to check applied policies. Look for Deny log on locally or Deny access to this computer from the network under User Rights Assignment.
  4. Corrupted system files: In the current CMD window, run sfc /scannow and wait for completion. If errors are fixed, repeat the elevation command.
  5. Third-party interference: Security software (e.g., antivirus, endpoint protection) may block elevation. Temporarily disable it (if permitted) and retry. If it works, add an exclusion for cmd.exe or contact your IT team.

Frequently Asked Questions

Can I open an admin Command Prompt from PowerShell?

Yes. In PowerShell, run Start-Process cmd -Verb RunAs and confirm UAC. This launches an elevated CMD window, identical to the method above.

Why does the new window close immediately after running the command?

You likely used cmd /c instead of cmd /k. The /c flag tells CMD to execute the command and then close. Replace /c with /k to keep the window open for verification.

Is it safe to run commands in an admin Command Prompt?

Only if you fully understand the command’s effect. Admin CMD can modify or delete critical system files, disable security features, or corrupt the OS. Always double-check syntax, and avoid pasting untrusted commands from forums or scripts.

Can I open admin CMD without a password prompt?

No. Windows requires explicit consent via UAC for elevation. The only exception is if the built-in Administrator account is enabled with no password (highly insecure and not recommended), but standard accounts always require UAC confirmation.

Does this work on Windows 7 or Windows Server?

Yes—the start cmd /k method works on Windows 7, Windows 8, Windows 10, Windows 11, and Windows Server 2008 through 2022, provided the account has admin rights and UAC is enabled.

What if the UAC prompt does not appear at all?

This usually means UAC is disabled. Press Win + R, type msconfig, go to the Tools tab, select Enable UAC, and click Launch. Restart the PC, then retry the command. Alternatively, check the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\System for EnableLUA set to 1.