Have you ever deployed a bunch of VMs from the same template and needed to change the port group on each of them so they would be on the correct network? Editing each VM by right clicking and going to Edit Settings would take you forever. So, I found a way to do it via PowerCLI. This is especially useful for a VDI demployment. Here's the syntax:
---------------------------
Get-VM GUESTVMNAMEHERE | Get-NetworkAdapter | where { $_.Name -eq "Network Adapter 1" } | Set-NetworkAdapter -NetworkName "PORTGROUPNAMEHERE" -StartConnected:$true -Confirm:$false
---------------------------
899aa2eb-03c1-49f7-bd22-db3806e46f7f|0|.0