Here is a script to get tasks (historic tasks not just current) and also the events associated with that task.This is very handy for auditing or troubleshooting. The task collection part of the script I found on LucD blog at https://www.lucd.info/tag/get-task/ Basically this will get all tasks and events for a specific time frame. It…
Tag: audit
VM disk audit script
This script scans all VMs in a vCenter and reports the location of each hard drive. The information collected for each drive is as follows: VM, Thick/Thin, file path, datastore, capacity, size on disk, Number of snapshots, total size of snapshots.