Как запустить командную строку от имени Администратора
В инструкциях на этом сайте то и дело одним из шагов является «Запустите командную строку от администратора». Обычно я поясняю, как это сделать, но там, где нет, всегда появляются вопросы, связанные именно с этим действием.
В этом руководстве опишу способы запуска командной строки от имени Администратора в Windows 10, 8.1 и 8, а также в Windows 7. Также на сайте доступны отдельные инструкции: Как открыть командную строку от имени Администратора в Windows 11, Как открыть командную строку в Windows 10)
Командная строка от имени администратора в Windows 10
Существует множество способов запуска командной строки от имени Администратора, многие из которых работают независимо от того, какая версия ОС у вас установлена. Но, пожалуй, самый удобный и быстрый способ запустить cmd.exe с правами администратора в Windows 10 — использовать поиск в панели задач:
Просто начните набирать «Командная строка» в поиске, а когда нужный результат будет найден, нажмите «Запуск от имени администратора» в правой части или, если такого не обнаружится (в ранних версиях Windows 10), нажмите по найденному результату правой кнопкой мыши и выберите нужный пункт контекстного меню.
Также, если в Windows 10 вы зайдете в Параметры — Персонализация — Панель задач и отключите пункт «Заменить командную строку оболочкой PowerShell», то пункт для запуска командной строки от имени администратора появится в контекстном меню кнопки пуск (открыть можно правым кликом по этой кнопки или сочетанием клавиш Win+X).
Запуск командной строки от администратора в Windows 8.1 и 8
Для того, чтобы запустить командную строку с правами администратора в Windows 8.1 есть два основных способа (еще один, универсальный способ, подходящий для всех последних версий ОС я опишу ниже).
Первый способ заключается в нажатии клавиш Win (клавиша с эмблемой Windows) + X на клавиатуре с последующим выбором из появившегося меню пункта «Командная строка (администратор)». Это же меню можно вызывать правым кликом мыши по кнопке «Пуск».
Второй способ запуска:
- Перейдите на начальный экран Windows 8.1 или 8 (тот, который с плитками).
- Начните на клавиатуре набирать «Командная строка». В результате слева откроется поиск.
- Когда в списке результатов поиска вы увидите командную строку, кликните по ней правой кнопкой мыши и выберите пункт контекстного меню «Запуск от имени администратора».
Вот, пожалуй, и все по этой версии ОС, как видите — все очень просто.
В Windows 7
Чтобы запустить командную строку от имени администратора в Windows 7, проделайте следующие шаги:
- Откройте меню Пуск, пройдите в Все программы — Стандартные.
- Кликните правой кнопкой мыши по «Командная строка», выберите пункт «Запуск от имени Администратора».
Вместо того, чтобы искать во всех программах, вы можете ввести «Командная строка» в поле поиска внизу меню Пуск Windows 7, а потом проделать второй шаг из описанных выше.
Еще один способ, для всех последних версий ОС
Командная строка — это обычная программа Windows (файл cmd.exe) и запустить ее можно как любую другую программу.
Находится она в папках Windows/System32 и Windows/SysWOW64 (для 32-разрядных версий Windows используйте первый вариант), для 64-разрядных — второй.
Так же, как и в описанных ранее способах, вы можете просто кликнуть по файлу cmd.exe правой кнопкой мыши и выбрать нужный пункт меню, чтобы запустить его от имени администратора.
Есть и еще одна возможность — вы можете создать ярлык для файла cmd.exe там, где вам нужно, например, на рабочем столе (например, перетащив правой кнопкой мыши на рабочий стол) и сделать так, чтобы он всегда запускался с администраторскими правами:
- Кликните правой кнопкой по ярлыку, выберите пункт «Свойства».
- В открывшемся окне нажмите кнопку «Дополнительно».
- Отметьте в свойствах ярлыка «Запуск от имени администратора».
- Нажмите Ок, затем снова Ок.
Готово, теперь при запуске командной строки созданным ярлыком, она всегда будет запускаться от администратора.
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!!
The Command Prompt is a powerful tool in Windows that lets you run commands to manage files, troubleshoot problems, and control system settings. But some commands require administrator access to work properly. Opening the Command Prompt as an administrator—often called “elevated mode” gives you full control to perform advanced tasks on your computer.
In this guide, we will discuss quick and easy ways to open the Command Prompt with administrator rights on your Windows 10 and 11.
Method 1: Using Windows Search (Windows 10 & Windows 11)
Note: This method is suitable for both Windows 10 and Windows 11
Step 1: Open the Start Menu and Type «CMD»
Press the Windows Key or Click on the Start Menu and Type Command Prompt or CMD and proceed ahead.
Step 2: Select «Run as Administrator»
Right-click on «Command Prompt» and select «Run as administrator».
Method 2: Run Dialog Box (Win 10 & 11)
Note: This method is suitable for both Windows 10 and Windows 11
Step 1: Open Dialog Box or Press Win + R
First, press the Windows key + R to open the Run dialog. Now, type «CMD» or Command prompt
Step 2: Hold down Ctrl + Shift to enter Admin Mode
Press Ctrl + Shift + Enter or click «OK» while holding Ctrl + Shift.
You might be asked to enter admin password. Provide the same & proceed with the Command Prompt administrator rights.
Note: This method is suitable for both Windows 10 and Windows 11
Step 1: Open Power User Menu
Go to Start Button or press Win + X
Step 2: Select Admin
Now, click on «Terminal (Admin)» from the menu.
Step 3: Hover and click to visit Command Prompt
Then, Click on the arrow from the menu and Select «Command Prompt«
By following this method, anyone can open command prompt using these 3 simple steps.
Note: This method is suitable forWindows 11
Step 1: Type Windows Tools in the search box
Click on the Start menu and type Windows Tools
Step 2: Click to Open as Administrator
Make a right click and select «Run as Administrator»
Method 5: Using Task Manager (Win 10 & Win 11)
Note: This method is suitable for both Windows 10 and Windows 11
Step 1: Open Task Manager and click to Run New Task
Click the Start Menu and type «Task Manager»
Step 2: Create a New Task to Run CMD with Administrative Rights
Create a new task in the File menu and select Run New Task. Check «Create this task with administrative privileges», and click OK.
Method 6: Use Control Panel (Windows 11)
Note: This method is suitable for Windows 11
Ypu can use Windows Control Panel to open Command Prompt with admin rights, here’s what you need to do:
Step 1: Press Win + R and type Control Panel
Now, on the Control Panel Search bar type «Windows Tools» and click on it.
Step 2: Click to Run as Administrator
Right-click on the Command Prompt and Click Run as administrator.
Method 7: Windows File Explorer
Note: This method is suitable for both Windows 10 and Windows 11
Step 1: Open File Explorer
Open File Explorer or press Win + E and type CMD
Step 2: Select «Run as Administrator»
Make a right-click and select «Run as admin»
Method 8: Using Desktop Shortcut
Note: This method is suitable for both Windows 10 and Windows 11
Step 1: Open File Explorer
Press Win + E and type Command Prompt or CMD
Step 2: Show more options > Create Shortcut
Press Win + D to get the desktop then right-click CMD then from the menu select «Properties» and then navigate to the «Shortcut» tab
Step 3: Create your custom shortcut
In the Shortcut key field, press a key combination of your choice.
Why Open Command Prompt as Administrator
The Command Prompt or CMD is a powerful tool for performing various system tasks. Running it as an administrator grants you admin access to:
- Modify System Settings
- Run Admin commands like sfc /scannow i.e. system scans
- Manage User Accounts
- Access and edit restricted files
Without administrator access, many essential commands will not work, so knowing how to open it with admin access is critical for users who manage system settings, developers, or anyone performing any troubleshooting related tasks.
Conclusion
Understanding how to open the Command Prompt as Administrator is essential for both casual users and power users. Whether you’re managing system configurations, running scans, or troubleshooting issues, knowing how to run CMD with elevated privileges will enhance your ability to manage your system effectively.
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.
The Command Prompt is considered to be an effective tool on the Windows Operating System. Whatever basic operations you do on Windows can also be carried out through the CMD. As you can see whether a code runs successfully or not, this helps to perform changes with authority. In this post, we will look into ways to run Command Prompt as an administrator in Windows 10.
Why should I require running CMD as administrator?
One may perform different tasks on an elevated console, however, when it comes to making changes to the system level, Windows Console simply fails. This is because you don’t have administrative privileges to carry out that particular code on your PC.
Launch Command Prompt as administrator and you become eligible to make any system-level changes to your PC. As it turns out, there are multiple ways using which you can open the elevated CMD on your Windows device. In this article, we will show you five methods to run Command Prompt as Administrator and they are using Windows Search box, Start Menu, and Run dialog box. So let’s see how to do it.
Here is how to open Command Prompt as Administrator in Windows 10 –
Methods List
- Using Windows Search box
- By using the Start Menu
- Using the Run dialog box
- Through the Task Manager
- By creating a Desktop shortcut
1] Using Windows Search box
To open an elevated command prompt using the Windows search box, follow the below instructions:
- Go to the Taskbar and click on the search box to open the Windows Search. Alternatively, you can also use the Shortcut keys like Win+S or Win+Q.
- In the Search box, type cmd, so that it would make the command prompt appear in the result list.
- Now right-click on the Command Prompt and select Run as administrator.
- At this time, a UAC prompt will appear and ask you to allow the Command Prompt to make changes on your device.
- Click on the Yes button to open the elevated Command Prompt on your computer screen.
2] By using the Start Menu
Here is how to open an elevated command prompt using the Start Menu.
- Go to the Taskbar and click on the Start button.
- In the menu list, scroll down until you get the Windows System.
Note: To make it easy, just click on the “#” symbol and then select the W alphabet. Now under the “W” category, you will get the Windows System.
- Once you find the Windows System, expand it.
- Now right-click on the Command Prompt > More > Run as administrator.
- Following this, the User Account Control will appear and ask for your consent.
- Select the Yes button to run Command Prompt as Administrator.
3] Using the Run dialog box
Windows 10 comes with a built-in Run command dialog box, which you can use to open your favorite programs directly. Here is a quick guide to open an elevated command prompt using this method.
- Right-click on the Start button and select the Run command. Alternatively, you can also use the Win+R shortcut key.
- In the text area, type CMD and then press Ctrl + Shift + Esc key combination.
- If the UAC prompt appears, select the Yes button to open the elevated command prompt.
4] Through the Task Manager
In order to open an elevated command prompt using the Task Manager, follow the below guidelines:
- Press Ctrl+Shift+Esc key combination to open the Task Manager directly.
- If the Task Manager is in the fewer details mode then expand it by clicking the More details.
- Go to the menu bar and click on the File menu.
- Now press and hold the Ctrl key and then select Run new task.
- This will open the elevated command prompt directly.
5] By creating a Desktop shortcut
To create a Desktop Shortcut of the elevated command prompt, follow the below steps –
- Right-click on a blank field on your desktop screen and select New > Shortcut.
- In the new pop-up window, copy and paste the below commands and then hit Next.
C:\Windows\System32\cmd.exe
- Give a suitable name you want for this shortcut and then click Finish to create the shortcut. This will create a new shortcut for the command prompt on the Desktop screen.
- Right-click on this new shortcut and select Properties from the context menu.
- In the Properties menu, go to the Shortcut tab and click the Advanced button.
- Next, check the box next to Run as administrator and then click OK.
- Now select Apply > OK button to apply the changes.
To open an elevated command prompt, you just need to double-click on the new desktop shortcut.
Related Post: How to open PowerShell as an administrator in Windows 10
