Skip to content

Instantly share code, notes, and snippets.

@judge2020
Created February 4, 2022 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save judge2020/d7425b606ce130ff1f63d2de7682e734 to your computer and use it in GitHub Desktop.
Save judge2020/d7425b606ce130ff1f63d2de7682e734 to your computer and use it in GitHub Desktop.

This opens an elevated Notepad process for editing the hosts file on Windows.

  1. Open a run box with Win+R
  2. Enter the following:
powershell Start-Process -Verb RunAs 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