Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 179681

Difference between these 2 statements..

$
0
0

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.


Viewing all articles
Browse latest Browse all 179681

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>