$arecord='intranet' $domain='contoso.com' $serverIp='555.555.555.555' $groupTag='# Accounting Servers' $serversToEdit='Accounting1','Accounting2','Watermelon' $commentOut=$false function updateHostFiles{ param( $appLocalIp, $orgName, $domain, $searchString,…