We seen how to delete a single entry from the hosts file – this is how we clear all entries function clear-hostfilecontent { [ CmdletBinding ( ) ] param ( ) $file = Join-Path -Path $( $env:windir ) -ChildPath "system32\drivers\etc\hosts" if
Read More...
Read the complete post at http://msmvps.com/blogs/richardsiddaway/archive/2011/10/30/clearing-hosts-file.aspx
Posted
Oct 30 2011, 03:39 PM
by
Richard Siddaway's Blog