Created
November 27, 2017 06:37
-
-
Save gilchris/c8f6c0d4222b724e74d4b1c8093e4254 to your computer and use it in GitHub Desktop.
Execute notepad with hosts file as administrator
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Start-Process -FilePath C:\Windows\notepad.exe -ArgumentList "C:\Windows\System32\drivers\etc\hosts" -Verb runAs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment