dsc/ext/PsGallery/xNetworking.3.2.0.0/Examples/Resources/xNetworkTeamInterface/2-RemoveInterface.ps1

<#
    .EXAMPLE
    Remove a Network Team Interface
#>

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

    Import-DSCResource -ModuleName xNetworking

    Node $NodeName
    {
        xNetworkTeam HostTeam
        {
          Name = 'HostTeam'
          TeamingMode = 'SwitchIndependent'
          LoadBalancingAlgorithm = 'HyperVPort'
          TeamMembers = 'NIC1','NIC2'
          Ensure = 'Present'
        }
        
        xNetworkTeamInterface NewInterface
        {
            Name = 'NewInterface'
            TeamName = 'HostTeam'
            Ensure = 'Absent'
            DependsOn = '[xNetworkTeam]HostTeam'
        }
    }
 }