- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Scanning for Inaccessible Templates
Hi all,
I'm trying to come up with a way to use PowerCLI to scan vCenter for templates that have had their disks deleted but not unregistered from vCenter. Templates aren't going to an inaccessible state like a VM would, so its been proving to be a bit of a challenge to detect this condition. Thus far when looking online, I've only seen cleaning up in the opposite direction, like LucD's Spring Cleaning script for deleting orphaned disks.
Does anybody have any suggestions for a method on detecting when a template is in vCenter, but the disks for it have been deleted?
Thanks,
Jason