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 ( "bd{1,3}.d{1,3}.d… Read the full text.