Scripting

[PowerCLI] Find and disconnect CD Drives on your VMs

One of the things that regularly pops up in our health checks in VMware environments are connected CD Drives that prevent DRS from functioning properly or prevents a host from entering maintenance mode when doing thing like patching. In large environments it can get very tedious to disconnect all those drives manually. With PowerCLI it is just one line. (more…)

[PowerCLI] Testing your networks

If you are knee-deep in a troubleshooting session with a customer you want to be able to have some tools ready that do some tests for you. One of the things that in my case has happened quite a lot was that some network were connected but couldn't communicate outside of the host. So in a HPE Blade Enclosure...

[PowerCLI] Report Empty LUNs

Once again I'm writing about a customer use-case. In this case the customer wanted to know if all of his many LUNs were actually being used or if there were any they could delete and save some storage space. The customer has a very big environment so it would have been tedious to do this task by hand. PowerCLI comes...

[PowerCLI] Automating VM Skeleton Deployment

We recently had to write a script for a customer which would deploy a VM skeleton. The script would be called from an automated solution the customer was building and had the following requirements: Use given service-account for interaction in vCenter Server Do different configuration based on the vm name which is passed as a parameter test servers need to be placed...