Can't Open CMD as Administrator in Windows 11 - Fix-It Guide

Reading time icon 4 min. read


Readers help support MSpoweruser. We may get a commission if you buy through our links. Tooltip Icon

Read our disclosure page to find out how can you help MSPoweruser sustain the editorial team Read more

Can't Open CMD as Administrator Windows 11

If you can’t open CMD as an administrator in Windows 11, you’re not alone. Many users encounter this frustrating issue. It’s usually caused by corrupted user profiles or system file problems. Luckily, I can show you how to regain access.

Let’s jump right in!

Quick Fixes

Before we proceed to more complex solutions, try these basic fixes below:

  • Restart your PC: Press the Start menu > Power button > Restart.
  • Update Windows: Click the Windows Icon > Settings > Windows Update > Check for updates > Download and Install any available updates.
  • Disable any third-party antivirus software: Right-click the antivirus icon in your system tray and select the option to disable it temporarily.

Create a New User Profile or Account

Sometimes, a corrupted user profile can prevent CMD from launching with administrative privileges. To create a new one:

  1. Press Windows + I to open Settings.
  2. Click on Accounts on the left sidebar, then select Other Users.
Accounts
  1. Click Add account under Other users.
 Add account
  1. Tap “I donโ€™t have this personโ€™s sign-in information.”
I donโ€™t have this personโ€™s sign-in information
  1. Click on Add a user without a Microsoft account.
Add a user without a Microsoft account
  1. Enter a username and password, then click Next.
Add details
  1. After creation, select the new account and click Change account type.
Change account type
  1. Set the account type to Administrator, then click OK.
Account type

Try opening CMD as an administrator. If the problem persists, try out the next fix.

Run Command Prompt as Administrator from a Desktop Shortcut

If CMD fails to open directly, creating a desktop shortcut can be a handy workaround. Here are the steps to follow:

  1. Right-click a space on your desktop, select New, and tap Shortcut.
New Shortcut
  1. In the location field, enter C:\Windows\System32\cmd.exe and click Next.
C:\Windows\System32\cmd.exe
  1. Name your shortcut (e.g., “Command Prompt”) and click Finish.
Name your shortcut
  1. Right-click the new shortcut and select Properties.
Properties
  1. Go to the Shortcut tab and click on Advanced. Check the box for Run as administrator, click OK, and then Apply.
Run as administrator

Double-click the shortcut to open CMD with administrative privileges. 

Run DISM and SFC Scans

Corrupted system files may prevent CMD from functioning properly. Running the Deployment Imaging Service and Management Tool (DISM) and System File Checker (SFC) can help repair damaged files. Since you canโ€™t open CMD, here’s how to do it with Automatic Repair Mode:

  1. Reboot your computer several times to activate Automatic Repair Mode.
  2. Tap Troubleshoot.
Troubleshoot
  1. Click Advanced options.
Advanced options
  1. Select Command Prompt from the Advanced options.
Command Prompt
  1. Type DISM /Online /Cleanup-Image /RestoreHealth, and press Enter. Wait for the scanning to complete.
DISM /Online /Cleanup-Image /RestoreHealth
  1. Type sfc /scannow and press Enter.
Type sfc /scannow

After the scan, restart your computer and check if the issue has been fixed.

Perform System Restore

If the problem started recently, using System Restore can help revert your computer to a previous state where everything was functioning correctly. Follow the steps below:

  1. Press Windows + R, type rstrui, and hit Enter.
Type rstrui
  1. Click Next.
Click Next
  1. Choose a restore point, then tap Next.
Choose a restore point
  1. Click Finish.
Finish

Your computer will restart, and the restoration process will begin.

Boot in Safe Mode

Booting into Safe Mode can help you troubleshoot and fix issues preventing CMD from opening. In this mode, only essential system programs are loaded, making it easier to identify problems.

  1. Press Windows + R, type msconfig and hit Enter.
Type msconfig
  1. Click on the Boot tab. Check the Safe boot box and select Minimal for basic Safe Mode under Boot options. Once done, tap the OK button.
Boot options
  1. Click Restart to boot into Safe Mode.
Restart

So, now you know what to do when you can’t open CMD as an administrator in Windows 11. I recommend starting with the quick fixes before moving to the complex ones. These steps will help you easily access your Windows Command Prompt.

Also, learn to create a folder and run Powershell script via CMD.

User forum

0 messages