Archive for May, 2017

Cleaning up files with powershell GUI confirmation

After automating my report last week, I decided I did not need a copy left lying around, so I decided to write a cleanup script. My first version was very simple, and consisted of just the required code to recurse the directory and delete the files. It occurred to me that a Yes/No MsgBox to […]

Report Automation with RVtools and Excel

Recently I needed to extract some configuration info from vCenter and email it someone on a semi-regular basis. They wanted specific information about the hosts and VMs in each vCenter. I figured the easiest way to get the required info was to use Rob de Veij’s excellent RVTools. To start, I ran RVTools, exported the […]

Removing a Datastore with PowerCLI/Powershell

Another issue that comes along with power outages? Hosts coming back up before their storage… With fiber channel, you can typically reconnect it with a refresh/rescan, but with NFS, they tend to become disconnected. The fix is to remove and re-add the Datastore (see kb 1005057) With no way to handle them en masse in […]

Fixing Greyed out Virtual Machines

As I am sure many of you have, I had an outage recently that caused my hosts to come up before my storage. This resulted in the dreaded invalid or “greyed out” VM. There are, of course, other ways to recover from this, but I have found this to be the easiest! Here are the […]