The Computer Oracle

Command line option to open program as administrator in Windows 7

--------------------------------------------------
Hire the world's top talent on demand or became one of them at Toptal: https://topt.al/25cXVn
and get $2,000 discount on your first invoice
--------------------------------------------------

Take control of your privacy with Proton's trusted, Swiss-based, secure services.
Choose what you need and safeguard your digital life:
Mail: https://go.getproton.me/SH1CU
VPN: https://go.getproton.me/SH1DI
Password Manager: https://go.getproton.me/SH1DJ
Drive: https://go.getproton.me/SH1CT


Music by Eric Matyas
https://www.soundimage.org
Track title: Puzzle Game 3 Looping

--

Chapters
00:00 Command Line Option To Open Program As Administrator In Windows 7
00:25 Answer 1 Score 3
00:32 Accepted Answer Score 10
00:51 Answer 3 Score 1
01:10 Thank you

--

Full question
https://superuser.com/questions/308397/c...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#windows7 #permissions #commandline

#avk47



ACCEPTED ANSWER

Score 10


You can do it a little bit faster by pressing Win, type in Search notepad and press Ctrl + Shift + Enter.

Or you can keep a command-prompt window open with higher privileges all the time and if some program needs to be opened with elevated privileges just start it from there with for instance: start notepad.




ANSWER 2

Score 3


Take a look at runas /? in command prompt.




ANSWER 3

Score 1


  • Press Win + R to open the run command line
  • Type notepad C:\WINDOWS\system32\drivers\etc\hosts

I believe this should open your hosts file in Notepad as an adminstrative user. It does for me anyway.