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 "system32driversetchosts"
if… Read the full text.