Category Archives: Scripting

Directory partition has not been backed up [DC=virtualcenter,DC=vmware,DC=int]

With the help of Alan Renouf’s vCheck (Daily Report) script I recently started noticing an error in my Windows event log on a vCenter server. This directory partition has not been backed up since at least the following number of … Continue reading

Posted in Scripting, Virtualization | 2 Comments

Active Directory: Find recent NO_CLIENT_SITE subnets

From time to time I try to verify that all of my subnet boundaries are properly defined in AD Sites and Services. At some locations this is a little more challenging — especially when a site has many domain controllers. … Continue reading

Posted in Scripting | Leave a comment

Create a bunch of snapshots with PowerCLI

Last week I was working with snapshots in my lab. I came up with this one liner to create a bunch of snapshots on the same virtual machine: for ($i=1; $i -le 5; $i++) {get-vm “snaptest” |new-snapshot -name “snapshot00$i” -Description … Continue reading

Posted in Scripting, Virtualization | Leave a comment

Check ESXi to see if sshd is listening

In a recent service request with VMware, Tech Support enabled ssh on one of my ESXi hosts. Unfortunately, the outage that prompted my support request impacted multiple hosts in different clusters, so we were looking at many things in the … Continue reading

Posted in Scripting, Virtualization | Leave a comment

Script to Configure SSL on ESX/ESXi

I’ve had to create a bunch of SSL certificates for ESX/ESXi hosts. Its always a pain because there are a bunch of steps and I can’t remember what my company always uses for the Organization name/Organizational unit name. I created … Continue reading

Posted in Scripting, Virtualization | 1 Comment