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?

  • I'd be surprised if there's a command-line based way that skips the UAC dialog. I thought that's kind of the intent - that no shell utility or anything that could run unseen can skip the prompt. It might be possible to have an administrative service running with startup, that can then start an administrative program though? – Katana314 Jan 22 '16 at 3:26
  • 5
    superuser.com/questions/1029295/… – Jonno Jan 22 '16 at 9:14
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.

Not the answer you're looking for? Browse other questions tagged or ask your own question.