Examples/Resources/HostsFile/2-RemoveEntry.ps1
<#
.EXAMPLE Remove a host from the hosts file #> Configuration Example { param ( [Parameter()] [System.String[]] $NodeName = 'localhost' ) Import-DSCResource -ModuleName NetworkingDsc Node $NodeName { HostsFile HostEntry { HostName = 'Host01' IPAddress = '192.168.0.1' Ensure = 'Absent' } } } |