3
votes
2answers
4k views

Run as administrator from command line on Windows 8

I am trying to run Notepad as admin so I can edit my hosts file from the command line. I have tried runas /user:(myusername)\administrator "notepad c:\windows\system32\drivers\etc\hosts" I then input ...
0
votes
2answers
1k views

Edit hosts - run as administrator does not work

I am trying to edit hosts file on my computer. I click start -> find notepad shortcut -> run it as administrator (window on dimmed background appears) -> i press yes -> find hosts file -> edit it -> ...
0
votes
2answers
2k views

Create a shortcut with administrator rights for hosts file in Win 7

I'm trying to create a shortcut link on my desktop that is a link to the hosts file in Windows 7. The problem is that this shortcut will not open in administrator mode as the option will be greyed out ...