{"id":51,"date":"2010-04-06T09:00:42","date_gmt":"2010-04-06T13:00:42","guid":{"rendered":"http:\/\/enterpriseadmins.org\/blog\/?p=51"},"modified":"2010-04-06T09:00:42","modified_gmt":"2010-04-06T13:00:42","slug":"guest-os-mis-match","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/scripting\/guest-os-mis-match\/","title":{"rendered":"Guest OS Mis-match"},"content":{"rendered":"<p>I&#8217;ve been working on cleaning up my vSphere environment and found a very handy one-liner today. \u00a0The full article can be found here:<\/p>\n<p><a href=\"http:\/\/frankdenneman.nl\/2009\/12\/impact-of-mismatch-guest-os-type\/\">http:\/\/frankdenneman.nl\/2009\/12\/impact-of-mismatch-guest-os-type\/<\/a><\/p>\n<p>I took the suggestions in the comments and came up with the following:<\/p>\n<pre>Get-View -ViewType VirtualMachine | Where { $_.Guest.GuestFullname -ne $_.Summary.Config.GuestFullName } | Sort Name |Select-Object Name, @{N=\u201dInstalledOS\u201d;E={$_.Guest.GuestFullName}}, @{N=\u201dSelectedOS\u201d;E={$_.Summary.Config.GuestFullName}} | Out-GridView<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been working on cleaning up my vSphere environment and found a very handy one-liner today. \u00a0The full article can be found here: http:\/\/frankdenneman.nl\/2009\/12\/impact-of-mismatch-guest-os-type\/ I took the suggestions in the comments and came up with the following: Get-View -ViewType VirtualMachine &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/scripting\/guest-os-mis-match\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[3,4],"tags":[],"class_list":["post-51","post","type-post","status-publish","format-standard","hentry","category-scripting","category-virtualization"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/51","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/comments?post=51"}],"version-history":[{"count":1,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/51\/revisions"}],"predecessor-version":[{"id":52,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/51\/revisions\/52"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=51"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=51"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}