** Use at your own caution! Please verify backups and test prior to running in a production environment! **
Using RVTools to automate the creation of the file to reference what VMs that are not registered and/or VMDKs that are not registered to a VM. This is done following https://communities.vmware.com/t5/VMw... post and editing a little to look for both types and remove instead of move.
My personal github with the script is located at: https://github.com/joeyvmware/automat...