Apr 21
If you use VMware Lab Manager and Virtual Center you have probably noticed a lot of orphaned virtual machines within your VI Client.
VMware has a tool you can install on your Lab Manager server to automatically clean up these orphans.
- Download the tool from here (you will need to rename the extension to .msi) and install it on the Lab Manager server.
- Open a command prompt and change your current working path to C:\Program Files\VMware\VMware Lab Manager Server\Tools\RemoveOrphanedVMs
- Run the following: removeorphanedvms -h <virtualcenterserver>:<port 443 is the default> -u <username> -p <password> -t -v
- Note the with the -t option it won’t actually remove any machines, it will print out to the screen the names of the machines it thought were orphans and the total amount it found.
- Setup a scheduled task to have this run automatically in your environment if preferred.
Recent Comments