Windows cmd with admin

How to Run Command Prompt as an Administrator in Windows 10

A small tip on how to run your command prompt as an administrator or in other words, open an elevated command prompt, in Windows 10/8/7. We have seen how to launch Command Prompt, and carry out many tasks. But some tasks required elevated privileges to be run. In such cases, you have to open an elevated command prompt window. So let us see how to launch, run or open Command Prompt as an administrator or an elevated CMD with administrative privileges & rights in Windows 10/8/7.

Run Command Prompt as Administrator

In Windows 10 and Windows 8, follow these steps:

Take the cursor to the bottom left corner and right-click to open the WinX menu. Select Command Prompt (Admin) to open an elevated command prompt.

So you see, things have been made easier in Windows 10/8.1.

In Windows 7, follow these steps:

Type cmd in Start search.

In the results, you will see ‘ cmd ‘.

Right-click on it and from the context menu select Run as Administrator.

TIP: This post will help you if you can’t run Command Prompt as administrator.

There are other ways to open an elevated command prompt:

  1. Press Ctrl+Shift+Esc to open the Task Manager. Click on File menu > Run new task. To open a command prompt window, type cmd. Remember to check the Create this task with administrative privileges check-box. Then hit Enter.
  2. You can also open an elevated Command Prompt from the Task Manager using CTRL key.
  3. Or then simply open the Start Menu or Start Screen and start typing the command line. Next, hold the Shift and Ctrl keys, and then hit Enter to open the command line in an elevated command prompt.
  4. Open an elevated command prompt using CMD
  5. Run Commands from Windows Start Search Box as an Administrator
  6. Run commands from Explorer address bar.

Best Cybersecurity Practices for Small Business

How to open .URL files with any Browser in Windows 10

You must have Read permissions to view the properties of this object

[email protected]

Anand Khanse is the Admin of TheWindowsClub.com, a 10-year Microsoft MVP (2006-16) & a Windows Insider MVP. Please read the entire post & the comments first, create a System Restore Point before making any changes to your system & be careful about any 3rd-party offers while installing freeware.

Читайте также:  Windows install ubuntu font

Primary Sidebar

report this ad

8 способов открыть cmd от имени администратора в Windows 10

Здравствуйте, мои любознательные читатели!

Сегодня у нас в статье пойдет речь о командной строке (cmd.exe) в Windows 10. Командная строка позволяет выполнять разнообразные задачи, которые не всегда возможно выполнить через графический интерфейс. И при работе в cmd часто могут требоваться повышенные права. Сейчас мы с вами узнаем 8 способов, как открыть cmd с правами администратора в Windows 10. Это не значит, что в остальных версиях Windows эти методы не сработают. Все нижеописанные способы открыть cmd с привилегиями администратора я проверял лично на Windows 10 и они полностью рабочие. Если у вас Windows 7 или 8, то проверяйте их на своей системе.

1. Запуск cmd из контекстного меню Пуска

Нажмите на Пуск правой кнопкой мыши или нажмите комбинацию Win+X, причем клавишами быстрее, я гарантирую это;) Появится контекстное меню, в котором выбираем пункт Командная строка (администратор). Готово!

2. Через диспетчер задач

Если у вас запущен Диспетчер задач, то можно открыть cmd прямо из него. Для этого зайдем в меню Файл -> Запустить новую задачу.

Вводим cmd и ставим галочку чуть ниже Создать задачу с правами администратора. И затем ОК.

3. Через диспетчер задач (хитрый способ)

Третий способ очень похож на второй, но чуть более быстрый и не такой известный.

Начало такое же, то есть, в Диспетчере задач выбираем Файл -> Запустить новую задачу, но когда кликаете мышкой по этому пункту — удерживайте клавишу Ctrl. В этом случае сразу запускается cmd в режиме администратора, без лишних разговоров.

4. Запуск cmd из поиска Windows 10

Нажмите комбинацию Win+S либо прицельтесь левой кнопкой мышки в значок лупы справа от кнопки Пуск. В поле поиска можно ввести либо на английском ‘cmd‘ либо на русском введите первые 5-6 букв от названия ‘Командная строка‘. Затем правой кнопкой мыши нажимаем на результате поиска, выбираем Запустить от имени администратора.

5. Запускаем cmd из меню Все приложения

Открываем Пуск, кликаем на Все приложения и отыскиваем пункт Служебные — Windows. Обычно он прячется в самом низу, так что промотайте колесиком мышки до самого конца.

Итак, нашли группу Служебные, раскрыли список программ внутри и обнаружили Командную строку. Правой кнопкой по ней кликаем, затем Дополнительно, потом Запуск от имени администратора.

6. Запуск из системного каталога Windows\System32

Можно запустить командную строку прямо из ее родной папки system32. Для этого заходим в Проводник / Мой компьютер, находим диск C, ищем папку Windows, идём туда, находим папку System32, углубляемся все дальше и дальше в кроличью нору заходим в неё. В папке System32 ищем файл cmd.exe. Выделяем его. И тут появляется два варианта.

Самый быстрый и простой: правой кнопкой мышки кликаем на cmd.exe и выбираем уже знакомый нам Запуск от имени администратора.

Другой вариант чуть больше времени занимает. При выделении файла сверху возникает надпись Средства работы с приложениями. Нажимаете туда левой кнопкой мыши, снизу вылезает еще одно меню, нажимаете на пункт Запустить от имени администратора.

7. Запуск cmd из любой папки Проводника

Этот вариант открытия командной строки доступен из любой папки Проводника Windows 10. Заходите в нужное вам место, заходите в меню Файл -> Открыть командную строку -> Открыть командную строку как администратор.

8. Создаем админский ярлык для cmd.exe

Для быстрого доступа к админской командной строке сделаем следующее.

Читайте также:  Установка службы windows cmd

На рабочем столе на свободном месте кликаем правой кнопкой, выбираем Создать -> Ярлык.

Вводим cmd или cmd.exe, оба вариант будут работать. Далее.

Назовите ярлык так, чтобы сразу было понятно, например, cmd.exe (admin). Готово.

Ярлык создан, но еще не настроен. Заходим в его свойства (правой кнопкой на ярлыке и выбрать Свойства). Нажимаем кнопку Дополнительно…

… и ставим галочку Запуск от имени администратора. Сохраняем все это дело и теперь мы всегда сможем запустить командную строку cmd с правами администратора простым запуском ярлыка.

Но можно еще больше ускорить запуск;)

Нажмите правой кнопкой на ярлыке и выберите пункт Закрепить на панели задач. Или Закрепить на начальном экране как вариант.

P.S.: В комментариях указали еще один метод запуска командной строки с админскими правами. Нажимаем WIN+R, вводим cmd и нажимаем комбинацию клавиш Ctrl+Shift+Enter. И вуаля.

Есть еще способы запуска, но они от имени обычного пользователя, что не вписывается в тему этой статьи. Например, через Win+R или удерживать Shift при клике правой кнопкой мыши на приложении.

Как видите, одно и то же действие в Windows можно выполнить различными способами. В зависимости от текущей конкретной ситуации я могу выбирать наиболее подходящий вариант запуска cmd.

А вам все эти методы были знакомы? Или какая-то часть из них оказалась в новинку?) Расскажите в комментариях.

How to Run Cmd as Administrator in Windows 8

Last updated on January 19, 2015 By Venkat

There is no conventional Start Menu in Windows 8 like to that of in Windows 7, which shows programs and files while typing in the search box, if you want run command as administrator in Windows 8, here is how you can do that.

Running command Prompt with Admin Privileges in Windows 8

1. Press Win key +F for metro search UI to appear

2. Click on Apps and type cmd in the search box under Search for Apps and press enter

3.cmd appears in the left pane, right-click on it and click on Advanced at the bottom and select run as administrator

Command prompt window opens running with admin privileges appears as shown on top in the screenshot.

Update 06/01/2012: Even easier method, follow the instructions below

Open Windows Explorer or My Computer ,and Open the C Drive

Now from File menu, select Open Command Prompt > Open Command Prompt as Administrator

How to run cmd with Admin privileges using command line

Is there a way to run/start cmd as administrator through the command line or a batch file programming in Windows 8?

I want to create a batch file which has administrative privileges without any prompt to the user.

4 Answers 4

For example, the administrator account is “AAA” and you want to run BBB.exe of C:\programs, you should follow these steps:

  1. Press Win key & R
  2. Input “CMD” in open box and click “OK”
  3. Input: runas /profile /user:AAA “C:\programs\BBB.exe” and press “Enter”
  4. Input the password of administrator AAA
  5. Press “Enter”

You can use runas.exe /savecred /user:administrator cmd or refer this link

You can download already created portable and clean (generated in the Windows XP ) shortcut files set: https://sourceforge.net/p/contools/contools/HEAD/tree/trunk/Scripts/Tools/ToolAdaptors/lnk/

Each lnk file just a link to the cmd.exe , so you can pass here all the cmd.exe command line options.

Pros:

  • You don’t need a localized version of Administrator account name like for the runas method.

Open Windows Terminal as admin with WIN+R

I use shortcut + R to run Windows Terminal [ wt ], but I cannot run it as Admin, which causes problems when I install something via choco .

Читайте также:  Если не включается mac os

  • To open it as Admin, I have to:
    Press > Right-click Terminal >More >Run as Admin > ◀ > ENTER
  • Some solutions say to use the following, but it can only open powershell , not wt :
    + X > A > ◀ > ENTER
  • While others say to use the following, but it also doesn’t work:
    + R > SHIFT + CTRL + ENTER

How do I open Windows Terminal as Admin via a command?

5 Answers 5

A shell in Windows Terminal [ wt ] can be launched/relaunched as Admin in three ways:

  1. Pin Windows Terminal to the Taskbar > SHIFT + Right-click it >Run as Administrator
  2. Relaunch as Admin from within wt :
    • These can be added to the following user Powershell profiles [ $Profile ] as environment variables:
      • %UserProfile%\Documents\Windows Powershell\profile.ps1
      • %UserProfile%\Documents\Windows Powershell\Microsoft.PowerShell_profile.ps1
  3. Add Relaunch-Admin function to the Powershell profiles above and invoke by relaunch-admin or alias psadmin :

In older versions of Windows, Run. created tasks with administrative privileges, but in Windows 10, it no longer does; however, you can do it using Task Manager:

  • CTRL + SHIFT + ESC >File Menu >New task >Create task with administrative privileges

– deuterium Jun 12 ’20 at 12:50

To start an executable as Admin from Run and Windows Menus, press CTRL + SHIFT + ENTER :

  • Run: WinKey + R
  • Windows Menus: Type the app’s name > Right-click it > Select Open file location:
    1. Right-click on shortcut > Select Properties
    2. Shortcut tab >Advanced >Advanced Properties > Select Run as administrator
      (The app will always start as Admin from now on)

Additional options to run an app as Administrator

You can create a shortcut to always run Windows Terminal as administrator using this powershell script:

It basically creates a Windows Terminal.lnk file on your desktop, when you run it runs Windows Terminal as an administrator.

I know this is not directly related to the question, but I consider this a big improvement for people like me which needs to always run as an Administrator (please do not do it just for the sake of it, higher permissions can represent a security risk).

I always need to run PowerShell as Administrator and I only want to use Windows Terminal, which given it’s restrictions cannot be configured to run always as Administrator.

I hated the need to use shortcuts and other hacks I found being suggested online, so I think I found a better solution but you have to pay the cost of a 1/2 seconds at startup.

  1. Locate your user profile (A profile is a Windows PowerShell ISE script that runs automatically when you start a new session) using _ $PROFILE
  2. Edit profile with any preferred editor _ code $PROFILE
  3. Adde the following code to the profile file and save it

What the script do? You can pin Windows Terminal icon to your application bar and when you click there WT will start as non elevated user, but the profile will understand if this is the case. When you are not running as Administrator it will change the name of the window and start a new WT as administrator. The new instance will also execute the profile file and if the instance is running as Administrator, it will look for the WT named Bootstrapper and kill it. This process takes between one and two seconds, I prefer this way other than right clicking on the icon.

Оцените статью