en-US/about_xDHCPClient.help.txt
.NAME
xDHCPClient # Description The resource is responsible for creating and managing DHCP Clients for a network interface on a node. .PARAMETER InterfaceAlias Key - string Alias of the network interface for which the DHCP Client is set. .PARAMETER AddressFamily Key - string Allowed values: IPv4, IPv6 IP address family. .PARAMETER State Required - string Allowed values: Enabled, Disabled The desired state of the DHCP Client. .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' } } } |