Created
July 5, 2010 13:56
-
-
Save jbarber/464370 to your computer and use it in GitHub Desktop.
Find all VMs with tools not OK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Find all VMs without the tools at the latest version/enabled | |
connect-viserver -server virtualcenter | |
get-view -viewtype "VirtualMachine" ` | |
| ?{ $_.runtime.powerstate -like 'poweredOn' } ` | |
| ?{ $_.guest.toolsstatus -notlike 'toolsok' } ` | |
| Sort-Object {$_.guest.toolsstatus} ` | |
| format-table name, {$_.guest.toolsstatus} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment