Examples/Resources/xHostsFile/1-AddEntry.ps1
<#
.EXAMPLE Add a new host to the host file #> configuration Example { param ( [string[]] $NodeName = 'localhost' ) Import-DSCResource -ModuleName xNetworking Node $NodeName { xHostsFile HostEntry { HostName = 'Host01' IPAddress = '192.168.0.1' Ensure = 'Present' } } } |