When I attempt to use either of the following commands I get an error. What am I missing?
Get-VirtualPortGroup -name PGNAME | Get-NicTeamingPolicy
Get-NicTeamingPolicy : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of
the parameters that take pipeline input.
At line:1 char:40
+ Get-VirtualPortGroup -name mm01-mgmt | Get-NicTeamingPolicy
+ ~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (mm01-mgmt:PSObject) [Get-NicTeamingPolicy], ParameterBindingException
+ FullyQualifiedErrorId : InputObjectNotBound,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.GetNicTeamingPolicy
get-vmhost hostA | Get-VirtualSwitch -name dvSwitch01 | Get-NicTeamingPolicy
Get-NicTeamingPolicy : The input object cannot be bound to any parameters for the command either because the command does not take pipeline input or the input and its properties do not match any of
the parameters that take pipeline input.
At line:1 char:78
+ get-vmhost hostA | Get-VirtualSwitch -name dvSwitch01 | Get ...
+ ~~~
+ CategoryInfo : InvalidArgument: (mm01-vc01-dvSwitch01:PSObject) [Get-NicTeamingPolicy], ParameterBindingException
+ FullyQualifiedErrorId : InputObjectNotBound,VMware.VimAutomation.ViCore.Cmdlets.Commands.Host.GetNicTeamingPolicy
Thanks