VMware Cloud Community
Prower123
Contributor
Contributor

Get abandoned VMDKs

I've noticed that there exists several abandoned VMDKs in my environment. Is there any method via PowerCLI to search for any abandoned VMDKs and possibly their locations? I was thinking possibly using the get-hardDisk cmdlet may allow this to happen, however I'm not sure how to specify that I want VMDKs that exist but are not being used.

Is it possible to do this? I'm currently confused at how to go about this problem so any information would be great.

0 Kudos
1 Reply
LucD
Leadership
Leadership

Have a go at the script in my Orphaned files and folders – Spring cleaning post.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos