Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

Windows CMD with Admin Rights: How to Open It

· 5 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

To open Windows Command Prompt with administrator rights, press the Windows key, type cmd, right-click Command Prompt in the search results, and choose Run as administrator. Confirm the User Account Control (UAC) prompt. You can also use the Power User menu: press Win + X, then select Terminal (Admin) or Command Prompt (Admin), depending on your Windows version. This gives you an elevated command prompt, which is required for commands that change system settings, manage services, or modify protected files.

What You'll Need

  • A Windows PC running Windows 10 or Windows 11 (steps are similar for Windows 8.1).
  • An account that is a member of the local Administrators group. Standard accounts will see a UAC prompt asking for an admin password.
  • Keyboard and mouse (or touchscreen).

Step-by-Step

  1. Open the Start menu search. Press the Windows key or click the Start button, then type cmd. The search results will show Command Prompt (and possibly Command Prompt under Best match).
  2. Right-click the Command Prompt entry. A context menu appears. Select Run as administrator. If you don't see that option, click More first, then Run as administrator.
  3. Approve the UAC prompt. A User Account Control dialog will ask, "Do you want to allow this app to make changes to your device?" Click Yes. If you are signed in with a standard account, you'll need to enter an administrator's password.
  4. Verify elevation. The Command Prompt window opens with the title bar reading Administrator: Command Prompt (or Administrator: Windows PowerShell if that is your default terminal). You can also run whoami /groups | find "S-1-16-12288" to confirm high integrity level, but the title bar is the simplest check.
  5. Alternative method using Win+X. Press Win + X (or right-click the Start button). From the menu, choose Terminal (Admin) on Windows 11, or Command Prompt (Admin) on Windows 10. Confirm the UAC prompt.
  6. Alternative method using Run dialog. Press Win + R, type cmd, then press Ctrl + Shift + Enter instead of Enter. This launches the command prompt as administrator. Confirm UAC.
  7. Alternative method from Task Manager. Open Task Manager (Ctrl + Shift + Esc), click File > Run new task, type cmd, and check the box Create this task with administrative privileges. Click OK.

Note: Menu labels can differ slightly between Windows versions and editions. For example, Windows 11 may show Terminal (Admin) while Windows 10 shows Command Prompt (Admin). The underlying elevation is the same.

Common Mistakes

  • Forgetting to right-click. Simply pressing Enter after typing cmd opens a normal, non-elevated prompt. You must explicitly choose Run as administrator.
  • Ignoring the UAC prompt. Clicking No or closing the dialog cancels elevation. The command prompt will not open with admin rights.
  • Using a standard account without admin credentials. If your account is not an administrator, you cannot elevate without entering an admin password. Ask your IT department or the PC's administrator.
  • Confusing PowerShell with Command Prompt. On Windows 11, the default terminal might be Windows PowerShell. The commands are similar but not identical. If you need classic CMD, type cmd inside the PowerShell window after elevating.
  • Running commands in the wrong directory. An elevated prompt often starts in C:\Windows\System32. Use cd /d "C:\path\to\folder" to change to the correct folder before running scripts.

Tips

  • Pin Command Prompt to the taskbar: search for cmd, right-click the result, and choose Pin to taskbar. Then you can right-click the pinned icon and select Run as administrator.
  • Create a desktop shortcut that always runs as admin: right-click the desktop, choose New > Shortcut, type cmd, click Next, name it, then right-click the shortcut, choose Properties > Advanced, and check Run as administrator.
  • Use Ctrl + Shift + Enter from the Start menu search to launch as admin quickly.
  • When copying commands from the web, paste with right-click (or Ctrl + V in newer Windows) to avoid typos.
  • Close the elevated window when you're done. Leaving it open is a security risk if someone else uses your PC.

Troubleshooting

  • "Run as administrator" is missing or greyed out. Your account may not be an administrator, or Group Policy may block elevation. Check with your IT admin. On a home PC, ensure your account type is Administrator in Settings > Accounts > Family & other users.
  • UAC prompt does not appear. If UAC is disabled, elevation may happen silently. That is not recommended for security. Re-enable UAC via Control Panel > User Accounts > Change User Account Control settings.
  • Command Prompt opens and closes immediately. This can happen if a startup script fails. Try opening via the Run dialog with cmd /k to keep the window open.
  • "Access is denied" when running a command. Even with admin rights, some files or registry keys are protected by TrustedInstaller. Use takeown and icacls only if you understand the risks, or use specialized tools.
  • Windows Terminal opens instead of CMD. Windows 11 uses Terminal as the default. You can change the default in Terminal's settings or simply type cmd in the Terminal tab.

Frequently Asked Questions

How do I know if my Command Prompt is running as administrator?

The title bar will say "Administrator: Command Prompt" (or "Administrator: Windows PowerShell"). You can also run net session; if it returns without an access-denied error, you are elevated.

Can I open an elevated Command Prompt without a mouse?

Yes. Press Win, type cmd, then press Ctrl + Shift + Enter. Confirm the UAC prompt with the keyboard (Alt+Y or arrow keys).

Why does my Command Prompt say "Administrator" but commands still fail?

Some commands require specific services or permissions beyond admin rights, such as TrustedInstaller ownership. Also, ensure you are in the correct directory and that the command syntax is correct.

Is it safe to use an elevated Command Prompt?

Yes, if you trust the commands you run. Admin rights bypass many safeguards, so only run commands from reliable sources. Avoid pasting unknown scripts.

How do I exit an elevated Command Prompt?

Type exit and press Enter, or click the close button. This ends the elevated session.

Can I make Command Prompt always open as administrator?

You can set a shortcut to always run as admin (Properties > Advanced > Run as administrator), but the built-in Start menu entry cannot be changed. For security, keep UAC enabled and elevate only when needed.