Using PowerShell to clean up DHCP and DNS for VDI

When you run a virtual desktop infrastructure that builds and deletes hundreds of virtual machines every day, DHCP and DNS might eventually get out of sync and need some cleanup. When writing this PowerShell cleanup script, I decided to make vCenter my source of truth because has the virtual machine host names, IP addresses, power […]

Load PowerCLI into the PowerShell session as a module

Last year, VMware wrote about “PowerCLI 6.0 – Introducing PowerCLI Modules.” Although I’ve been using PowerCLI 6.0 since then, I missed the note from Alan Renouf that made it easy to load all of the PowerCLI functionality into a PowerShell session as a module instead of having to launch PowerCLI. Here was his tip/trick: 1 […]

Use PowerCLI Set-HardDisk and Invoke-VMScript to increase the size of many virtual machine hard drives

Today I decided that I wanted to increase the C: volume of 20 VMware Horizon View parent virtual machines (the source for 1,000s of linked-clone virtual desktops) from 40 GB to 60 GB. The normal/painful way to do this would be: vSphere > select the virtual machine > Edit Settings > change Hard Disk 1 […]

Using View PowerCLI to prepare for a VMware Horizon View 6 upgrade

In a few weeks, I will be upgrading my employer’s VMware Horizon View environment from version 5.2 to version 6.0. Some of the steps in the Preparing vCenter Server and View Composer for an Upgrade documentation are rather repetitive. Here are my notes on how I might perform these steps via View PowerCLI. View PowerCLI […]

How to move automated persistent desktops to another cluster

My objective was to upgrade vSphere host from 1 gigabt Ethernet to 10 gigabit Ethernet connections. All of my VMware Horizon View 5.2 linked-clone desktops resided in a single cluster of 10 hosts that I’ll call Cluster A. I had an even mix of persistent and non-persistent desktops. Cluster B was needed Through trial and […]