DSCResources/xNetworking/2.12.0.0/Tests/Integration/MSFT_xHostsFile.config.ps1
$HostEntry = [PSObject]@{ HostName = 'Host01' IPAddress = '192.168.0.1' Ensure = 'Present' } Configuration MSFT_xHostsFile_Config { param ( [string[]]$NodeName = 'localhost' ) Import-DSCResource -ModuleName xNetworking Node $NodeName { xHostsFile HostEntry { HostName = $HostEntry.HostName IPAddress = $HostEntry.IPAddress Ensure = $HostEntry.Ensure } } } |