Skip to content

Instantly share code, notes, and snippets.

@rendfall
Created January 19, 2017 23:02
Show Gist options
  • Save rendfall/58eb1c68ee4b226722f231d17b8b9f62 to your computer and use it in GitHub Desktop.
Save rendfall/58eb1c68ee4b226722f231d17b8b9f62 to your computer and use it in GitHub Desktop.
CMD batch without UAC confirmation
runas /profile /user:Administrator /savecred "notepad C:\Windows\System32\drivers\etc\hosts"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment