Mass Reconfigure of Virtual Machine vCPU Sockets/Cores using VMware PowerCLI

powercli

Increasing the amount of vCPUs in ESXi is a simple admin task when working with a single or low number of virtual machines. However, performing this on a large number of virtual machines can be an intensive task.

This article is about my use case and how I resolved this with a script, which can be found at the bottom.

Continue reading

Exporting and Importing vSphere Distributed Switch Permissions using PowerCLI

powercli.png

At my current assignment, I got busy with the replacement of an existing vCenter Server and migration of all linked objects. This included migrating the vSphere Distributed Switch Port Group objects, settings and permissions.

Exporting the vSphere Distributed Switch configuration is an easy-to-do job using the GUI. However permissions are not included. This post is dedicated to the script I wrote to export and import these permissions.

Continue reading