{"id":342,"date":"2011-05-13T16:23:22","date_gmt":"2011-05-13T20:23:22","guid":{"rendered":"http:\/\/enterpriseadmins.org\/blog\/?p=342"},"modified":"2011-05-13T16:23:22","modified_gmt":"2011-05-13T20:23:22","slug":"vsphere-snapshot-report","status":"publish","type":"post","link":"https:\/\/enterpriseadmins.org\/blog\/scripting\/vsphere-snapshot-report\/","title":{"rendered":"vSphere Snapshot Report"},"content":{"rendered":"<p>I have been working on addressing a comment I noticed on the Virtu-Al vCheck comments (<a href=\"http:\/\/www.virtu-al.net\/featured-scripts\/vcheck\/\">http:\/\/www.virtu-al.net\/featured-scripts\/vcheck\/<\/a>).  The issue relates to a warning message returned in the &#8220;checking snapshots&#8221; section:<\/p>\n<pre>\r\n10:58:25 AM ..Checking Snapshots\r\nWARNING: Unable to populate snapshot size due to unsiffucient permissions.\r\n<\/pre>\n<p>The existing code worked for me (I did not receive the above warning in any of my environments).  The problem may be related to the version of PowerCLI [version 4.1 U1 build 332441 appears to work well].  The snapshot code inside vCheck is fairly complex, and I had some trouble following what was happening.  After a few minutes of trying to following along I gave up and tried to write the same thing a different way.  Here is the modified section that can be ran independently&#8230;<a href='http:\/\/enterpriseadmins.org\/blog\/wp-content\/uploads\/2011\/05\/troubleshootSnapshots.ps1_.txt'>troubleshootSnapshots.ps1<\/a><\/p>\n<p>I&#8217;m looking for testers (again).  If this code works for you, please let me know.  If this code proves to work better I&#8217;ll update my version of vCheck to include the new method. <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have been working on addressing a comment I noticed on the Virtu-Al vCheck comments (http:\/\/www.virtu-al.net\/featured-scripts\/vcheck\/). The issue relates to a warning message returned in the &#8220;checking snapshots&#8221; section: 10:58:25 AM ..Checking Snapshots WARNING: Unable to populate snapshot size due &hellip; <a href=\"https:\/\/enterpriseadmins.org\/blog\/scripting\/vsphere-snapshot-report\/\">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-342","post","type-post","status-publish","format-standard","hentry","category-scripting","category-virtualization"],"_links":{"self":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/342","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=342"}],"version-history":[{"count":2,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/342\/revisions"}],"predecessor-version":[{"id":352,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/posts\/342\/revisions\/352"}],"wp:attachment":[{"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/media?parent=342"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/categories?post=342"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/enterpriseadmins.org\/blog\/wp-json\/wp\/v2\/tags?post=342"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}