Try doing it as
$pg = Get-VirtualPortGroup -name PGNAME
Get-NicTeamingPolicy -VirtualPortgroup $pg
We have seen similar flaws in some cmdlets when retrieving, or better not retrieving, values from the pipeline.
Try doing it as
$pg = Get-VirtualPortGroup -name PGNAME
Get-NicTeamingPolicy -VirtualPortgroup $pg
We have seen similar flaws in some cmdlets when retrieving, or better not retrieving, values from the pipeline.