Hi,
I'm trying to understand how these 2 statements are different, and why.
In the below statement there is no find by where used and instead just -name switch is used.
Remove-VirtualPortGroup -VirtualPortGroup (Get-VirtualPortGroup -Name vMotion) -Confirm:$false
While in this statement even though there is a -name switch it's being called using where and not directly.
Remove-VirtualSwitch -VirtualSwitch (Get-VirtualSwitch -VMHost 192.168.116.60 | where {$_.Name -eq "vSwitch1"}) -Confirm:$false.
Thank You.