We’ve seen how to read the Hosts file – this is how we add a record function add-hostfilecontent { [ CmdletBinding ( SupportsShouldProcess = $true ) ] param ( [ parameter ( Mandatory = $true ) ] [ ValidatePattern ( "\b\d{1,3}\.\d{1,3}\.\d{1,3}\.
Read More...
Read the complete post at http://msmvps.com/blogs/richardsiddaway/archive/2011/10/24/hosts-file-add-a-record.aspx
Posted
Oct 24 2011, 03:07 PM
by
Richard Siddaway's Blog