May 19, 2012

VMware Lab Manager – Remove Orphaned VMs

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.

Popularity: 4% [?]

No related posts.

Related posts brought to you by Yet Another Related Posts Plugin.

About mike
I am currently a Consulting Architect working for Nexus Information Systems in the Twin Cities, MN area. My professional summary is available via my LinkedIn page. I can be contacted by the Contact Me link at the top of the site. I also spend (too much) time on Twitter so feel free to follow or send me a tweet.