Using PowerCLI to add VLAN to multiple ESXi hosts
So I got tired of creating new VLANs on multiple ESX-hosts every time there was a need for new network in the datacenter. And since SSH is disabled, according to VMware best practices, I had to search for a method to add vlan to the vswitch through command line.