Examples/Resources/xNetConnectionProfile/1-SetNetConnectionProfile.ps1

<#
    .EXAMPLE
    Sets the Ethernet adapter to Public and IPv4/6 to Internet Connectivity
#>

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

    Import-DscResource -Module xNetworking

    Node $NodeName
    {
        xNetConnectionProfile Example
        {
            InterfaceAlias   = 'Ethernet'
            NetworkCategory  = 'Public'
            IPv4Connectivity = 'Internet'
            IPv6Connectivity = 'Internet'
        }
    }
}