Сегодняшняя сессия вопросов и ответов приходит к нам благодаря SuperUser - подразделению Stack Exchange, основанной на сообществах сайтам Q & A.
Вопрос
Считыватель SuperUser Джонно хочет знать, есть ли быстрый способ открыть программу в качестве администратора с включенным UAC в своей системе Windows 10:
Currently, if I want to open a command prompt on my Windows 10 system, I press the Windows Key, type CMD, then hit Enter. If I want to open it as administrator, I have to right click on it and select Run as Administrator. Is there a way that I can do this without using a mouse?
Есть ли быстрый способ открыть программу в качестве администратора с включенным UAC в системе Windows?
Ответ
У участников SuperUser Jonno, David Marshall и Ben N есть ответ для нас. Сначала, Джонно:
By holding Ctrl + Shift while pressing Enter, it will open as administrator. You can also hold Ctrl + Shift and left click a command prompt window on the taskbar (probably other applications too) to open a new one as administrator.
Confirmed as working on Windows 7, 8, 8.1, and 10.
Вслед за ответом Дэвида Маршалла:
For Windows 8.1 and 10 (English versions), you can open an administrator level command prompt window via the keyboard using Windows Key + X followed by A. For other languages, the appropriate key to use will be indicated by an underline in the pop-out menu.
И наш окончательный ответ от Бена Н:
If you find yourself opening administrator level command prompt windows all the time, then you can create a shortcut on the taskbar as follows:
- Find Command Prompt in the search results (searching for CMD works).
- Right-click on it and choose Pin to Taskbar.
- Open the taskbar shortcut’s properties by right-clicking on the icon, then right-clicking the Command Prompt entry that appears and choosing Properties.
- On the Shortcut Tab, click the Advanced Button.
- Check Run as Administrator, then click OK to exit out of the properties window.
You can now open the shortcut by holding the Windows Key and pressing the number that represents the shortcut icon’s position on the taskbar (do not include the Windows 10 desktop switcher icon). For example, if your command prompt icon is the second pinned item, then pressing the Windows Key + 2 will open it. Pressing Alt + Y will ‘accept’ the UAC prompt when it appears. That is just two keyboard shortcuts with a total of four keys used (and no mouse required).
Special Note: SuperUser reader Todd Wilcox noted that if you are not using a local administrator account with the Alt + Y keyboard shortcut, then you will need to enter the user name and password of an administrator account in use on that system.
Есть что добавить к объяснению? Отключить звук в комментариях. Хотите узнать больше ответов от других пользователей Windows? Посмотрите здесь полную дискуссионную тему.