Examples/Resources/xNetConnectionProfile/2-SetNetConnectionProfileNetworkCategory.ps1

<#
    .EXAMPLE
    Sets the Ethernet adapter to Private but does not change
    IPv4 or IPv6 connectivity
#>

Configuration Example
{
    param
    (
        [Parameter()]
        [System.String[]]
        $NodeName = 'localhost'
    )

    Import-DscResource -Module xNetworking

    Node $NodeName
    {
        xNetConnectionProfile Example
        {
            InterfaceAlias   = 'Ethernet'
            NetworkCategory  = 'Private'
        }
    }
}