Category IaC

Create a credentials file for vSphere

Instead of having to enter the username and passwords every time you are running a script it is a good idea to create a credentials file and encrypt it on your system. Create encrypted file This creates a file C:\vCenterCredentials.xml…

vSphere Admin scripts

Some scripts that I use to manage vSphere Turn off SSH if running Count the number of VMs that are in each vSphere cluster List the 10 largest VMs per cluster Per RAM Example output Export to CSV as well…

Resize VM through Code

A prevalent task for a VMware admin is to power down VM X and add more CPU or RAM to the VM. Infrastructure as code enthusiasts suggest that any operation performed manually should be automated. Let us look at how…

The power of the script: vSphere CLI

When you learn the syntax, using the vSphere CLI is an easy way to gather information quickly and easily from one or many vCenters. PowerCLI is a potent tool. The examples provided only begin to demonstrate its capabilities. Tasks you…

Share on Social Media