2

Using the keyboard alone on Windows 7 or Windows 8, how can I open a privileged command prompt window with built-in tools?

I've unsucessfully tried Windows+R -> cmd -> runas /user:Administrator cmd but the resulting cmd doesn't run with administrator privileges (due to UAC explained here)

I'm looking for a sudo equivalent essentially, without the mouse. This is the best candidate I've seen thus far. Is that the best way currently?

2 Answers2

2

Using keyboard alone, launch CMD with elevated privileges

Using the keyboard alone on Windows 7 or Windows 8, how can I open a privileged command prompt window with built-in tools?

  1. Press the Win Key | Type CMD in the search bar | Press Ctrl+Shift+Enter
  2. If you have PowerShell installed you can run this command from Win Key+R . . . . . Powershell -Command "Start-Process cmd -Verb RunAs"

Note: PowerShell is a Windows native built-in tool but it's optional so you have to have it installed for the #2 approach to work. It is not third party though so it's a Microsoft Windows feature, tool, or shell.


Sources

1

Windows+X, A starts the Command Prompt (or Power Shell) as Admin under Windows 8.x and newer.

Canadian Luke
  • 24,640