-
Home
-
News
- [Solved] Can’t Run Command Prompt as Administrator Windows 10
By Stella | Follow |
Last Updated
To fix some issues or execute some features, you need to run Command Prompt as administrator. But, sometimes you find that you can’t run Command Prompt as administrator Windows 10. In this MiniTool post, we will show you some solutions that are available to fix can’t run as administrator Windows 10. You can select one that is suitable for you.
How to Fix Can’t Run Command Prompt as Administrator Windows 10?
- Check your antivirus software
- Create a Command Prompt desktop shortcut
- Disable all non-Microsoft context menu items
- Create a new user account
- Update Windows 10
- Use Safe Mode
Solution 1: Check Your Antivirus Software
Yes, it is necessary to install antivirus software on your Windows 10 computer to find and remove viruses and malware. However, for some reason, the installed antivirus software may be conflicting with the features on Windows 10.
Thus, you need to check the quarantine list of your antivirus software to check whether the Command Prompt is included in it. Some users say that Avast can put the consent.exe file in the quarantine list. This can cause issues with Command Prompt. If this issue happens to you, you need to remove this file from the quarantine list.
Even, you need to uninstall the antivirus software from your computer to check whether you can run Command Prompt as administrator on Windows 10. If yes, it is the antivirus software that is conflicting with Command Prompt. You can use another antivirus software instead.
Solution 2: Create a Command Prompt Desktop Shortcut
Some users have fixed this issue by creating a Command Prompt desktop shortcut. You can also have a try:
1. Right-click your computer desktop and then go to New > Shortcut.
2. Type cmd.exe in the box that is below Type the location of the item and then click Next.
3. Type the name you want to use and click Finish.
Now, if you click the created shortcut, you just run Command Prompt not as administrator. You can follow these steps to run it as Administrator:
- Right-click the shortcut you have created and then select Properties.
- Go to Security > Advanced.
- Select Run as administrator and click OK.
- Click Apply and OK to save the change.
After this setting, you can run Command Prompt as administrator by double-clicking this shortcut.
The can’t run as administrator Windows 10 issue can also be caused by the context menu you are using. You can disable all the non-Microsoft context menu items to have a try. Here, you need to use the third-party software: ShellExView. This solution is suitable for advanced users.
You can download it on your computer and then run it to find the non-Microsoft entries in your context menu. Then, you can disable all of them.
Solution 4: Create a New User Account
This issue can also be caused by your user account issue. Thus, you can create a new user account to have a try.
- Click Start.
- Go to Settings > Account > Other users.
- Click the Plus icon next to Add someone else to this PC.
- Right-click Users and select New User.
- Type the information you want to use and then click Create.
Solution 5: Update Windows 10
You can also update Windows 10 to the latest version to solve this issue because the new Windows 10 version always fixes the bugs in the old ones.
You can go to Start > Settings > Update & Security > Check for updates to perform a Windows 10 update.
Solution 6: Use Safe Mode
Safe Mode allows you to run Windows 10 with the default settings. You can use Safe Mode to troubleshoot some processes on your computer. If the issue is disappeared in Safe Mode, you can fix the issue in Safe Mode.
Bottom Line
You can get 6 solutions to fix the can’t run Command Prompt as administrator on Windows 10. We hope they can solve your issue effectively. Should you have any related issues, you can let us know in the comment.
About The Author
Position: Columnist
Stella has been working in MiniTool Software as an English Editor for more than 8 years. Her articles mainly cover the fields of data recovery including storage media data recovery, phone data recovery, and photo recovery, videos download, partition management, and video & audio format conversions.
Readers help support Windows Report. We may get a commission if you buy through our links.
Read our disclosure page to find out how can you help Windows Report sustain the editorial team. Read more
Can’t run CMD as administrator and getting an error instead? This guide is for you. Besides using an account with no admin rights, your antivirus, or corrupt system files could also cause this.
Follow the steps below to get this error fixed ASAP:
What should I do if CMD is not running as administrator?
Begin with a simple PC restart and check if your antivirus is blocking CMD or related processes. It might show up in Threat History or the Quarantine list.
If these didn’t work, fret not! The ones listed next surely will help you deal with the Administrator Access Denied error messages in CMD.
1. Use Command Prompt
- Press Windows + R to open Run, type cmd, and click OK to run Command Prompt with standard privileges.
- Paste the following command and hit Enter:
powershell -command "start-process cmd -verb runas"
This way, you can run CMD as administrator from the command line in Windows 10 and 11.
2. Create a Command Prompt shortcut on your desktop
- Press Windows + E to open File Explorer and navigate the following path:
C:\Users\Default\AppData\Local\Microsoft\Windows\WinX\Group3 - Run the Command Prompt shortcuts here and make sure that they work. If they do, copy both to your desktop and run them from there.
Since there are two shortcuts, you have non-administrative and administrative Command Prompt available. You can easily recognize the administrative Command Prompt as its window will be labeled Administrator: Command Prompt once you start it.
Alternatively, you can create a new shortcut on your desktop without copying anything. To do that, follow these steps:
- First, Right-click your desktop, select New and then click on Shortcut.
- In the text field, enter cmd.exe and click Next.
- Enter the desired name of the new shortcut and click Finish.
Now you have to force the new shortcut to run with administrative privileges. Here’s how you can do that:
- Right-click the newly created Command Prompt shortcut and choose Properties from the menu.
- Go to the Shortcut tab and click the Advanced button.
- Check Run as administrator, and now click OK.
- Save changes.
You can double-click the new shortcut, and the Command Prompt will start with administrative privileges.
Remember that this is a workaround, but this solution should be helpful until you fix the core problem.
3. Disable all non-Microsoft context menu items
- Go to the ShellExView website, scroll to the bottom, and download the third-party application.
- After launching the program, you need to find all non-Microsoft entries in your context menu and disable them.
According to users, sometimes your context menu can cause this problem to appear. For example, if you can’t run Command Prompt as an administrator, perhaps other applications are causing this error.
Sometimes applications will add their entries to the context menu, which can lead to many other problems. And, ShellExView should come to your aid in this case.
Almost any application can cause this problem, but a few users reported issues with Express Zip File Compression (NCH Software). So if you’re using it, disable its entries from the context menu.
Keep in mind that this is an advanced solution, so you’ll need to get familiar with ShellExView a bit before you can fully apply this solution.
- How to fix the Access denied error on a Windows 10/11 administrator account
- Elevated permissions are required to run DISM
- Find out how to easily update your BIOS
- 5 best BSoD fixers to repair Blue Screen errors effortlessly
- 5 best RAM cleaners & optimizers for Windows 10 & 11
4. Create a new user account
- Press Windows + I to open Settings, and click on Accounts.
- Select Family & other people from the left, and click on Add someone else to this PC.
- Choose I don’t have this person’s sign-in information.
- Select Add a user without a Microsoft account.
- Enter the desired username for the new account and click Next.
Sometimes your user account can get corrupted, and that can cause an issue with Command Prompt. Repairing your user profile is difficult, but you can fix the problem simply by creating a new user account.
After creating a new user account, switch to it and check if the problem is still there. If the issue with Command Prompt doesn’t appear on the new account, move your files there and start using it instead of your old one.
5. Install the latest updates
- Press Windows + I to open Settings and navigate to the Update & Security section.
- Click the Check for updates button in the right pane. Windows will now check for updates and download them in the background.
- You will have to restart the computer for the updates to install completely.
According to users, sometimes, you can’t run CMD as an administrator due to specific bugs in Windows. However, Microsoft is usually quick to fix any major bugs that affect the user experience. So, check for updates, and install them if any are available.
6. Run CMD as administrator from Task Manager
-
1. Press Ctrl + Shift + Esc to open the Task Manager.
-
2. Go to the File menu and select Run new task.
-
3. Type cmd.exe in the text field.
-
4. Check the Create this task with administrative privileges box, and click OK.
-
5. Command Prompt will be launched on your PC.
The Task Manager can provide a solid alternative if you can’t run CMD as an administrator directly. Basically, you need to launch Task Manager and configure it to open Command Prompt.
Also, find out how to open a file or a folder in the Command Prompt.
7. Try using Safe Mode
Safe Mode is a particular segment of Windows that runs with default settings, and it’s usually a good place to start the troubleshooting process.
For example, if you can’t run Command Prompt as an administrator, perhaps you should be able to solve the problem by accessing Safe Mode.
Once you enter Safe Mode, try launching CMD as administrator, and if you see a black screen, run the following two commands while replacing the password in the second command with the one you want to set:
net user Administrator /active:yes net user Administrator password
This fix has been confirmed by users and would help get things running when you can’t run CMD as an administrator.
Also, as an additional piece of advice, you may run CMD as an administrator in folder by right-clicking anywhere in the blank portion and selecting Open in Terminal.
Alternatively, Windows 10 users can navigate to the desired folder and press Alt + F + S + A.
Tell us which solutions worked for you in the comments section below. Also, if you managed to fix things with another method, do let us know.
Milan Stanojevic
Windows Toubleshooting Expert
Milan has been enthusiastic about technology ever since his childhood days, and this led him to take interest in all PC-related technologies. He’s a PC enthusiast and he spends most of his time learning about computers and technology.
Before joining WindowsReport, he worked as a front-end web developer. Now, he’s one of the Troubleshooting experts in our worldwide team, specializing in Windows errors & software issues.
Все способы:
- Способ 1: Альтернативные методы запуска
- Вариант 1: Создание ярлыка «Командной строки»
- Вариант 2: Запуск ОС в «Безопасном режиме»
- Вариант 3: Новая задача в «Диспетчере задач»
- Способ 2: Приостановка антивирусной программы
- Способ 3: Создание новой учетной записи
- Способ 4: Проверка целостности системных файлов
- Способ 5: Восстановление системы
- Вопросы и ответы: 0
В Windows 10 предусмотрен аналогичная консоль – «Windows PowerShell», которая также работает с различными командами, в том числе и специфическими, недоступными для выполнения в обычной «Командной строке». В некоторых способах вам может понадобиться именно «PowerShell».
Способ 1: Альтернативные методы запуска
Если по какой-то причине не работает стандартный метод запуска «Командной строки», в целях проверки можно воспользоваться альтернативными методами.
Вариант 1: Создание ярлыка «Командной строки»
Проблема с запуском «Командной строки» может быть связана с тем, что меню «Пуск» работает некорректно. В этом случае попробуйте создать ярлык консоли на рабочем столе или в любом другом месте, чтобы попытаться запустить средство через него:
- Кликните по свободной области рабочего стола или внутри папки правой кнопкой мыши и наведите курсор на пункт «Создать». В дополнительном меню выберите «Ярлык».
- Откроется новое окно, где нужно указать путь к исполняемому файлу «Командной строки». В строку вставьте
C:\Windows\System32\cmd.exe. Нажмите на кнопку «Далее». - В следующем окне задайте имя ярлыку и кликните по «Готово».
После этого попробуйте запустить «Командную строку», дважды щелкнув по ярлыку.
Следует отметить, что при этом способе терминал будет открываться без прав администратора, но исправить ситуацию просто.
- Для этого щелкните ПКМ по созданному ярлыку и перейдите в его «Свойства».
- В системном окне перейдите на вкладку «Ярлык» и щелкните по кнопке «Дополнительно».
- Отметьте пункт «Запуск от имени администратора» и подтвердите действие.
Читайте также: Решение проблемы с неработающей кнопкой «Пуск» в Windows 10
Вариант 2: Запуск ОС в «Безопасном режиме»
Если не работает «Командная строка» в Windows 10, вероятно, вы недавно установили приложение, которое могло повлиять на работу консоли. Также это происходит из-за деятельности вирусов, которые попали на ПК и получили доступ к системным файлам и данным. Чтобы проверить, так ли это, попытайтесь открыть программу, запустив Windows 10 в «Безопасном режиме».
Существует несколько методов зайти в «Безопасный режим», включая настройки утилиты «Конфигурация системы» и параметры загрузки ОС. Детальнее о них читайте в нашем отдельном руководстве. Отметим, что в нем есть способ с командой для «Командной строки», но ее можно использовать и в «Windows PowerShell».
Подробнее: Безопасный режим в Windows 10
Если в «Безопасном режиме» запуск «Командной строки» не вызывал затруднений, то придется удалять все недавно установленные программы, затем по одной их переустанавливать, чтобы понять, какая из них вызывает проблему. Процесс довольно утомительный, но является единственным, особенно если важно не трогать системные настройки.
Читайте также: Установка и удаление программ в Windows 10
Вариант 3: Новая задача в «Диспетчере задач»
Когда обычным способом открыть «Командную строку» не получается, можно попробовать запустить консоль из другого места – создать новую задачу с правами администратора в «Диспетчере задач» Windows 10:
- Щелкните ПКМ по свободной области рабочей панели и из меню выберите «Диспетчер задач».
- Кликните по вкладке «Файл», затем по пункту «Создать новую задачу».
- В дополнительном окне в строке введите
cmd, отметьте пункт запуска с расширенными правами и подтвердите действие.
После этого должно открыться окно консоли, а новая задача отобразится в списке «Диспетчера задач» на вкладке «Процессы».
Читайте также: Восстановление работоспособности «Диспетчера задач» в Windows 10
Способ 2: Приостановка антивирусной программы
Чтобы решить проблему, попробуйте приостановить работу стороннего антивирусного решения. Такие программы иногда блокируют не только софт от других разработчиков, но и системные средства, например открытие или работоспособность консоли в целом.
Универсальной инструкции по отключению нет, потому как такой софт деактивируется различными способами. В одних случаях достаточно вызвать контекстное меню значка в трее, в других придется покопаться в настройках. Наш автор разбирал, как приостановить работу наиболее популярных приложений для защиты ОС в отдельной статье.
Подробнее: Отключение антивируса
Если вы обнаружили, что после этого «Командная строка» начала вновь стабильно работать, то, вероятно, придется использовать другое антивирусное решение или встроенную защиту Windows 10.
Способ 3: Создание новой учетной записи
Некоторые файлы, связанные с учетной записью Microsoft, могли быть повреждены в результате сбоев и ошибок, что влияет на запуск «Командной строки». Попробуйте создать новый аккаунт в системе, чтобы проверить это предположение. В Windows 10 для этого можно использовать оснастку «Учетные записи пользователей» или возможности приложения «Параметры». О методах мы писали ранее на нашем сайте.
Подробнее: Создание новой учетной записи в Windows 10
После того как новая учетная запись Microsoft создана, зайдя в систему под этим аккаунтом, попытайтесь запустить «Командную строку».
Способ 4: Проверка целостности системных файлов
Этот способ поможет исправить ситуацию, при которой могли оказаться поврежденными важные файлы системы, отчего те или иные штатные инструменты перестают корректно функционировать. В Windows предусмотрены специальные утилиты, которые проверяют и системные файлы, и их хранилища на целостность, а при обнаружении возможных неполадок инструменты автоматически исправляют их или предлагают пользователю варианты решений.
У нас на сайте есть отдельная инструкция по использования таких утилит, как SFC и DISM, которые помогают восстановить целостность системных файлов. Но в руководстве их запуск осуществляется через «Командную строку». Поскольку в вашем случае она не работает, то используйте аналогичную консоль – «Windows PowerShell», отыскав его по названию в меню «Пуск».
Следует отметить, что в остальном алгоритм действий из материала ничем не отличается: запускаете «PowerShell» и вводите все те команды, которые разобраны в статье по ссылке ниже.
Подробнее: Использование и восстановление проверки целостности системных файлов в Windows 10
Способ 5: Восстановление системы
Еще один действенный способ решить проблемы с запуском штатного средства – это восстановление состояния системы к предыдущему состоянию. То есть придется откатиться до того момента, когда в работе консоли не наблюдалось неполадок. Метод подойдет, если в результате критических ошибок в ОС или деятельности вредоносных утилит были повреждены важные программные компоненты. Однако на ПК должна заранее быть активирована функция автоматического создания контрольных точек, в противном случае способом воспользоваться не удастся.
Подробнее: Откат к точке восстановления в Windows 10
После этого все недавно внесенные настройки и установленные приложения, которые могли вмешаться в работу «Командной строки», будут сброшены и удалены.
Наша группа в TelegramПолезные советы и помощь
Sometimes we need to open Command Prompt as an administrator to get certain information about the computer or change some settings. This page shows you four simple and quick ways to open Command Prompt as an administrator in Windows 10.
- Way 1: Using the Search box
- Way 2: Using the Win+X menu
- Way 3: Using the Run dialog box
- Way 4: Using Task Manager
Way 1: Using the search box
1. Click in the “Type here to search” box next to the Start (Windows) icon or press Win + S to bring up the search box.
2. Type cmd (or command prompt) in the search box.
3. The Command Prompt shortcut will appear in the search results. Right-click it and select Run as administrator. Or, you can directly click Run as administrator on the right panel.
4. If a User Account Control dialog pops up, click Yes to allow the Command Prompt to run as administrator.
Way 2: Using Win+X menu
Right-click the Windows icon on the left of the taskbar or press Windows key + X to bring up the Win+X menu (also called Power Users Menu). Then simply select Command Prompt (Admin) from the Win+X menu.
Tips: Starting with Windows 10 Creators Update, the Win+X menu does not contain Command Prompt by default, and instead is replaced by Windows PowerShell. If you want Command Prompt back to the Win+X menu, just go to Settings to replace Windows PowerShell with Command Prompt.
Way 3: Using Run dialog box
1. Press Win + R to quickly bring up the Run dialog box.
2. Type cmd in the box, and then press Ctrl + Shift + Enter on your keyboard. This will run Command Prompt as administrator.
Way 4: Using Task Manager
The former three are the easiest and fastest way to open Command Prompt as an administrator in Windows 10. Next, I will introduce another less common but useful method – using Task Manager.
1. Right-click the taskbar and select Task Manager to open Task Manager.
2. On Task Manager, click File > Run new task.
3. In the “Create new task” dialog that opens, type cmd in the box, check “Create this task with administrative privileges“, and then press Enter. This will run Command Prompt as administrator.
Using the instructions here you will have the ability to open Command Prompt as administrator in Windows 10 from Start, Search, Run, taskmgr, PowerShell, and more. This application allows running commands that help you fix multiple issues, change settings, and access different files. When you stuck in anything on Windows 10 the first tool you remember is CMD. Administrative authority makes you capable to run a task in elevated mode.
We already discussed How to Launch Elevated Command Prompt on Windows 10 but now some additional ways are available for the same. So here we have come with a collection of all methods to open cmd with admin rights.
How to Open Command Prompt as Administrator in Windows 10
Here are 12 Ways to Open Command Prompt as Administrator in Windows 10 –
1] Quickest and easiest way to run cmd as admin
Step-1: Click on the Start icon.
Step-2: Type cmd.
Step-3: Press ctrl+shift+enter on keyboard.
Step-4: Once User Account Control (UAC) dialog appears, select Yes.
2] Open command prompt as administrator from Run dialog
- Press Win+R and let the Run dialog box appear.
- Write down either cmd or cmd.exe in the empty text field onward to Open.
- Press ctrl, shift, and enter simultaneously.
- Click Yes when a UAC dialog prompts to seek permission.
3] Take the help of Windows search bar
- Press Windows and S keys.
- Type “cmd”
- Click – Run as administrator.
- A UAC will prompt up for authentication; choose Yes.
4] Open Command Prompt as Administrator in Windows 10 Via Win+X menu
In the recent versions of Windows 10, you notice rather Windows PowerShell (Admin) in the Power user menu (Win+X). But for launching easily, you can replace it with Command Prompt (Admin) via a small tweak in Settings. This will help you to open cmd with administrative privilege in only 2 clicks. Here’s how –
- Open Windows Settings (by pressing Win and I).
- Select Personalization.
- Select Taskbar from the left-pane and then shift to the right.
- Toggle on the option – “Replace Command Prompt with Windows PowerShell in the menu when I right-click the Start button or press Windows Key+X”.
- From now onward, whenever you will open the Power user menu, you will view Command Prompt (Admin) in the list.
- Simply press Win+X and choose the same.
5] Open command prompt as administrator by means of Task Manager
Important – Before proceeding forward, make sure that you have signed in as administrator.
- Right-click on the Taskbar and select Task Manager or directly press “Ctrl+Alt+Esc”.
- From the menu bar, click on File option.
- Press and hold the Ctrl key and at the same time click Run new task.
- It will right away open cmd as admin.
6] Again using Task Manager
- Open Task Manager using the method given in the previous way.
- Click on File from the uppermost menu bar and choose Run new task.
- Type either cmd.exe or cmd the provided space and check the box for “Create this task with administrative privileges”.
- Click – OK.
7] Through Start menu
- Press Windows key to bring up the Start menu
- Click on # from the top.
- Select W alphabet from the list.
- Click Windows System from here and to expand its options.
- Right-click on Command Prompt, move the cursor over “More”
- Then choose – “Run as administrator”.
- When you see a User Account Control popup, click the Yes to give consent.
8] Switch PowerShell to Command Prompt
- Press “Win+X” hotkey and select “Windows PowerShell (Admin)” from the Power user menu.
- When the User Account Control shows up in the display, click the Yes button to allow it.
- In the “Administrator: Windows PowerShell”, type cmd after PS C:\WINDOWS\system32> and hit the Enter key.
- This will immediately switch the PowerShell utility to Command prompt.
9] Open Command Prompt as Administrator in Windows 10 From System32 Directory
- Press – Win+E.
- Select This PC in Quick access and then Perform a double click on “(C:)” (we assume that this is your system drive).
- Double click – Windows folder.
- From the next window, locate System32 and double-click on the same to enter it.
- Once this directory appears, find cmd.exe.
- Right click on the same and opt Run as administrator from the list.
- Finally, hit the Yes button once the UAC arrives.
- Alternatively, to get access to the location you may copy-paste “C:\Windows\System32” into the Run dialog box and hit Enter.
10] Via Run command
- Press Win+R.
- Paste
C:\Windows\System32\cmd.exein Run dialog - Hit – ‘ctrl+shift+enter’.
- Choose Yes when User account control prompt appears.
11] Create Desktop shortcut
- Right-click on the desktop.
- and move cursor on New and select Shortcut.
- A wizard entitled Create Shortcut will show up.
- Copy C:\Windows\System32\cmd.exe paste into the given area
- Click Next.
- Provide a name for this shortcut.
- Click on Finish.
- You will notice a new shortcut for the “CMD” on the desktop. Right-click on the same and select Properties.
- In the Shortcut tab, move down to the bottom and click the Advanced button.
- Mark – Run as administrator
- Hit the – OK.
- Finally, click on Apply and thereafter OK button to save the changes.
- In future, whenever you need to open command prompt as administrator, just double-click on the shortcut.
12] Assign a shortcut key to open cmd as admin
- Follow the previous method to create a shortcut key of Command Prompt and give it administrative authority.
- Right-click on the desktop shortcut and select – Properties.
- Go to Shortcut key area and click on the box located beside it.
- Now, press your preferred key from the keyboard. When you will type C and the system automatically generated a shortcut key Ctrl+Alt+C.
- Lastly, click on Apply and then OK to make the changes effective.
- To open cmd as admin, you just require hitting the shortcut key you just created.
Methods:
1] Quickest and easiest way to run cmd as admin
2] From Run dialog
3] Take the help of Windows search bar
4] Via Win+X menu
5] By means of Task Manager
6] Again using Task Manager
7] Through Start menu
8] Switch PowerShell to Command Prompt
9] From System32 Directory
10] Via Run command
11] Create Desktop shortcut
12] Assign a shortcut key
That’s all!!
