VMware Cloud Community
nicholas1982
Hot Shot
Hot Shot

Report all Orphan Files and Move to Directory (Not Delete)

Hi All,

I've seen many scripts that can report and delete orphan files on a VMFS volume, however I need something slightly modified if someone would be kind enough to help.

1. Is it possible to add datastores as a variable, I would like to specify the datastore/s to scan rather than scan all.

2. Report on all Orphan files not just delta-VMDKs at this stage nothing to be done just report.

3. If I'm happy with removing the orphan files in the previous report, I would have the ability to un-comment some lines to actually move those files in a temp DIR located on that datastore like "ORPHAN_FILES"

Munch appreciated if anyone could assist.

Nicholas
Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership

Have you seen my Orphaned files and folders – Spring cleaning post ?

By default it only reports.


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

nicholas1982
Hot Shot
Hot Shot

Hi Luc,

Thanks for your response, actually I have used this one before and works well, but what I'm really looking for is to be able to choose one or more datastores and rather than delete have the ability to move to a DIR.

In the mean time this will do and I manually move the files.

Nicholas
Reply
0 Kudos