Guest OS Mis-match

I’ve been working on cleaning up my vSphere environment and found a very handy one-liner today.  The full article can be found here:

I took the suggestions in the comments and came up with the following:

Get-View -ViewType VirtualMachine | Where { $_.Guest.GuestFullname -ne $_.Summary.Config.GuestFullName } | Sort Name |Select-Object Name, @{N=”InstalledOS”;E={$_.Guest.GuestFullName}}, @{N=”SelectedOS”;E={$_.Summary.Config.GuestFullName}} | Out-GridView
This entry was posted in Scripting, Virtualization. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *


Notify me of followup comments via e-mail. You can also subscribe without commenting.