Smart Systems for Home

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

Admin Command Prompt Windows 10: Quick Guide

· 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 an elevated Command Prompt in Windows 10, right-click the Start button and choose Windows PowerShell (Admin) or Command Prompt (Admin) (the label depends on your build), then confirm the User Account Control prompt. Alternatively, type cmd in the Start menu search, right-click Command Prompt, and select Run as administrator. The window title will show Administrator: Command Prompt. This gives you full system access for commands that require elevated privileges, such as network resets, disk checks, and system file repairs.

What You'll Need

  • A Windows 10 PC with an administrator account (standard accounts cannot elevate).
  • Permission to approve the User Account Control (UAC) prompt — you may need the admin password.
  • Keyboard and mouse (or touchscreen).
  • No additional software; Command Prompt is built into Windows.

Step-by-Step

  1. Open the Start menu. Click the Windows logo at the bottom-left of the screen or press the Windows key on your keyboard.
  2. Type cmd. The search results will show the Command Prompt app. (On some systems, typing command prompt also works.)
  3. Right-click the Command Prompt result. A context menu appears. Choose Run as administrator. If you don't see this option, your account may not have admin rights — see Troubleshooting.
  4. Approve the UAC prompt. A dialog asks “Do you want to allow this app to make changes to your device?” Click Yes. If you are signed in with a standard account, enter an administrator's username and password.
  5. Verify elevation. The Command Prompt window title should read Administrator: Command Prompt. The prompt typically starts in C:\WINDOWS\system32>. If the title lacks “Administrator”, close it and repeat from step 3.
  6. Run your command. Type the command and press Enter. For example, ipconfig /flushdns clears the DNS cache. Commands that need admin rights will now work.
  7. Close the window when done. Type exit and press Enter, or click the X. Admin sessions are powerful; close them to reduce risk.

Note: Menu labels and the default shell can differ slightly by Windows 10 version and region. On some builds, right-clicking Start shows Windows PowerShell (Admin) instead of Command Prompt; you can still run cmd from PowerShell or enable the classic menu in Settings > Personalization > Taskbar. The steps above apply to desktop Windows 10; Windows 11 uses Terminal (Admin) in the same right-click menu.

Common Mistakes

  • Using a normal Command Prompt. A standard window looks identical but lacks admin rights; commands like sfc /scannow will fail or warn. Always check the title bar for “Administrator”.
  • Clicking “No” on UAC. The window opens without elevation. Re-open and approve the prompt.
  • Typing commands from untrusted sources. Admin commands can delete files or change system settings. Only run commands you understand or that come from official Microsoft documentation.
  • Confusing Command Prompt with PowerShell. They are different shells. Many commands work in both, but some are shell-specific. If a command isn't recognized, check which shell you're in.
  • Leaving an admin window open. Anyone with physical access can misuse it. Close it when finished.

Tips

  • Pin Command Prompt to the taskbar for quick access: search cmd, right-click the result, and choose Pin to taskbar. You'll still need to right-click the pinned icon and choose Run as administrator for elevation.
  • Use the Windows key + X menu (also called the Power User menu) for fast access to an admin shell.
  • Copy and paste works in Command Prompt: right-click to paste, or use Ctrl+V in newer builds. Enable “Use Ctrl+Shift+C/V as Copy/Paste” in the window's Properties if needed.
  • Run cmd /? for a list of command-line switches, or help for built-in commands.
  • For system repairs, run sfc /scannow first, then DISM /Online /Cleanup-Image /RestoreHealth if problems persist. Both require admin rights.

Troubleshooting

  • “Run as administrator” is missing or greyed out. Your account is likely a standard user. Sign in with an administrator account, or ask an admin to elevate for you. You cannot bypass this without admin credentials.
  • UAC prompt doesn't appear. Check that User Account Control is enabled (search UAC in Start). If it's disabled, re-enable it for security; without it, elevation may silently fail.
  • Command Prompt opens and closes immediately. This can happen if a startup script exits. Try opening via the Start menu search method instead of a shortcut, or run cmd /k to keep the window open.
  • “Access is denied” when running a command. Confirm the title bar says “Administrator”. If it does, the command may require TrustedInstaller or a different privilege level; check Microsoft's documentation for that command.
  • Windows PowerShell opens instead of Command Prompt. On newer Windows 10 builds, the Power User menu defaults to PowerShell. You can change this in Settings > Personalization > Taskbar (look for “Replace Command Prompt with Windows PowerShell”). The setting name varies by version.
  • Forgot administrator password. You'll need another admin account or a password reset disk. Do not use third-party password bypass tools; they can compromise security.

Frequently Asked Questions

Is admin Command Prompt the same as PowerShell?

No. They are separate command-line shells. An elevated Command Prompt runs cmd.exe with admin rights; PowerShell is a more advanced scripting environment. Many system commands work in both, but some are shell-specific.

Can I open an admin Command Prompt without a mouse?

Yes. Press Windows key + X, then press A (or the underlined letter for the admin option) to open the admin shell. On some builds, the shortcut opens PowerShell instead; you can type cmd and press Enter.

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

Some commands require additional privileges or specific conditions (e.g., the service must be running). Check the exact error message and consult Microsoft's documentation. Also ensure you're using the correct syntax.

Does running as administrator delete my files?

No, elevation itself doesn't delete anything. However, admin commands can modify or delete files if you run destructive commands. Always double-check commands before pressing Enter.

How do I know if a command needs admin rights?

If a command fails with “Access is denied” or “Requested operation requires elevation” in a normal prompt, it likely needs admin rights. Microsoft's documentation usually states elevation requirements.

Can I set Command Prompt to always open as administrator?

You can create a shortcut with the “Run as administrator” option in its properties, but Windows will still show a UAC prompt each time. There is no supported way to bypass UAC for standard users.