dsc/ext/PsGallery/xNetworking.3.2.0.0/Examples/Resources/xDhcpClient/1-EnableDHCP.ps1

<#
    .EXAMPLE
    Enabling DHCP Client for the Ethernet Alias
#>


configuration Example
{
    param
    (
        [string[] ]$NodeName = 'localhost'
    )

    Import-DscResource -Module xNetworking

    Node $NodeName
    {
        xDhcpClient EnableDhcpClient
        {
            State          = 'Enabled'
            InterfaceAlias = 'Ethernet'
            AddressFamily  = 'IPv4'
        }
    }
}