Examples/Resources/DnsServerAddress/3-DnsServerAddress_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 NetworkingDsc Node $NodeName { DhcpClient EnableDhcpClient { State = 'Enabled' InterfaceAlias = 'Ethernet' AddressFamily = 'IPv4' } DnsServerAddress EnableDhcpDNS { InterfaceAlias = 'Ethernet' AddressFamily = 'IPv4' } } } |