Skip to content

Instantly share code, notes, and snippets.

@Mindzy
Created April 24, 2019 06:22
Show Gist options
  • Save Mindzy/1e261c938d40079b85d1f62066e734a8 to your computer and use it in GitHub Desktop.
Save Mindzy/1e261c938d40079b85d1f62066e734a8 to your computer and use it in GitHub Desktop.
(Invoke-WebRequest https://github.com/googlehosts/hosts/raw/master/hosts-files/hosts).Content.Replace("`n", "`r`n") | Out-File -Encoding ASCII "C:\Windows\System32\drivers\etc\hosts"
Clear-DnsClientCache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment