Examples/Resources/xDhcpClient/1-xDHCPClient_EnableDHCP.ps1
<#
.EXAMPLE Enabling DHCP for the IP Address and DNS on the adapter with alias 'Ethernet'. #> Configuration Example { param ( [Parameter()] [System.String[]] $NodeName = 'localhost' ) Import-DscResource -Module xNetworking Node $NodeName { xDhcpClient EnableDhcpClient { State = 'Enabled' InterfaceAlias = 'Ethernet' AddressFamily = 'IPv4' } xDnsServerAddress EnableDhcpDNS { InterfaceAlias = 'Ethernet' AddressFamily = 'IPv4' } } } |