PCLI.me

POWERCLI – Powershell — Hit me up on twitter @VMNICK0

Create a new standard vSwitch – Cluster wide

nicholasfarmer May 31, 2013

This code will create a new vswitch on all hosts in the cluster and assign adapters.
Distributed vSwitch code is here >
Edit as needed:

get-cluster “mycluster” | Get-VMHost | New-VirtualSwitch -Name “vSwitch3” -Nic vmnic8,vmnic9

 

Vmware Links:
https://www.vmware.com/support/developer/PowerCLI/PowerCLI41U1/html/New-VirtualSwitch.html

Network

Post navigation

Rename local host storage to “hostname-local” – Cluster wide
Backup your Distributed Switch configs to a zip file.
Recent Posts
  • Deploy a VIB via PowerCLI…
  • vSphere/vCenter Tagging Performance Test Script
  • vSphere Tags using CISServer methods.
  • Check vCenter For User and API Access Frequency.
  • Backup your VCSA via automation+powerCLI Script.
Archives
  • February 2020
  • February 2019
  • July 2018
  • December 2017
  • October 2017
  • September 2017
  • March 2017
  • October 2016
  • May 2016
  • June 2015
  • May 2015
  • January 2015
  • October 2014
  • September 2014
  • August 2014
  • July 2014
  • June 2014
  • May 2014
  • February 2014
  • August 2013
  • July 2013
  • June 2013
  • May 2013
Categories
  • Bugs and Notes
  • Datastore
  • HA and DRS
  • Host
  • Network
  • Powershell
  • Script Performance Settings
  • Uncategorized
  • vCenter
  • VirtualMachine
  • Windows
Meta
  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Built on the Structr Framework for WordPress