dsc/ext/PsGallery/xNetworking.3.2.0.0/Examples/Resources/xHostsFile/2-RemoveEntry.ps1
<#
.EXAMPLE Remove a host from the hosts file #> configuration Example { param ( [string[]] $NodeName = 'localhost' ) Import-DSCResource -ModuleName xNetworking Node $NodeName { xHostsFile HostEntry { HostName = 'Host01' IPAddress = '192.168.0.1' Ensure = 'Absent' } } } |