{"id":697,"date":"2015-11-07T14:43:05","date_gmt":"2015-11-07T14:43:05","guid":{"rendered":"http:\/\/virtualworlduk.co.uk\/?p=697"},"modified":"2015-11-07T14:43:05","modified_gmt":"2015-11-07T14:43:05","slug":"excluded-vms-list-veeam-samreport-powercli","status":"publish","type":"post","link":"https:\/\/www.virtualworlduk.co.uk\/wordp\/excluded-vms-list-veeam-samreport-powercli\/","title":{"rendered":"Excluded VMs List &#8211; Veeam SAMReport &#8211; PowerCli"},"content":{"rendered":"<p>Following on from my previous post showing a backup report for the past three or four days, another element of the same report that I produce is to list out the virtual machines that are excluded from the backups and their reason. \u00a0This uses the VMware Tag capability&#8230; basically, any virtual machine that you want to be excluded from the report should have a Tag assigned to it which is part of the &#8216;Backup Tags&#8217; category&#8230; any virtual machine with the &#8216;Backup Tags&#8217; category assigned to it will be added to the list in this script.<\/p>\n<p>Once again the script enclosed below is a a module that can be added to the &#8216;SysAdmin Modular Report&#8217; that was created by &#8216;TheAgreeableCow&#8217; and featured on Veeams community forums&#8230; links below:<\/p>\n<p><a href=\"http:\/\/www.theagreeablecow.com\/2012\/09\/sysadmin-modular-reporting-samreports.html\">http:\/\/www.theagreeablecow.com\/2012\/09\/sysadmin-modular-reporting-samreports.html<\/a><\/p>\n<p><a href=\"http:\/\/forums.veeam.com\/powershell-f26\/sysadmin-modular-reporting-samreport-for-veeam-t13422.html\">http:\/\/forums.veeam.com\/powershell-f26\/sysadmin-modular-reporting-samreport-for-veeam-t13422.html<\/a><\/p>\n<p>The concept behind SAMReport is taken from some of the work done by Alan Renouf with his vCheck Report: \u00a0<a href=\"http:\/\/www.virtu-al.net\/vcheck-pluginsheaders\/vcheck\/\">http:\/\/www.virtu-al.net\/vcheck-pluginsheaders\/vcheck\/<\/a><\/p>\n<p>Example of how the report displays:<\/p>\n<p><a href=\"http:\/\/virtualworlduk.co.uk\/wp-content\/uploads\/2015\/11\/excluded.jpg\"><img fetchpriority=\"high\" decoding=\"async\" class=\"wp-image-698 size-large alignnone\" src=\"http:\/\/virtualworlduk.co.uk\/wp-content\/uploads\/2015\/11\/excluded-1024x325.jpg\" alt=\"excluded\" width=\"640\" height=\"203\" \/><\/a><\/p>\n<p>[powershell]<\/p>\n<p>Connect-ViServer $VMware_Server<\/p>\n<p>$Title = &quot;Excluded VMs in Woking&quot;<br \/>\n$ResultsText = &quot;These machines in Woking have been excluded for the following reasons&quot;<br \/>\n$ResultsAlert = &#8216;Warning&#8217;<\/p>\n<p>$newresult = @(get-tagassignment -Category &#8216;Backup Tags&#8217; | select -property @{N=&#8217;VM&#8217;;E={$_.Entity}}, @{N=&#8217;Reason&#8217;;E={$_.Tag.Name}} | Sort Reason )<\/p>\n<p>$ResultsData = $newresult<br \/>\n############################################################################################################<br \/>\n# Output #<br \/>\n#&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<\/p>\n<p>$OutText = $ResultsText<br \/>\n$OutData = $ResultsData | Sort-Object VM<br \/>\n$OutAlert = $ResultsAlert<br \/>\n$Attachment = &quot;&quot;<\/p>\n<p>[\/powershell]<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Following on from my previous post showing a backup report for the past three or four days, another element of the same report that I produce is to list out the virtual machines that are excluded from the backups and their reason. \u00a0This uses the VMware Tag capability&#8230; basically, any virtual machine that you want to be excluded from the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":698,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[8,9],"tags":[],"class_list":["post-697","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-veeam","category-vmware"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.virtualworlduk.co.uk\/wordp\/wp-json\/wp\/v2\/posts\/697","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.virtualworlduk.co.uk\/wordp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.virtualworlduk.co.uk\/wordp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.virtualworlduk.co.uk\/wordp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.virtualworlduk.co.uk\/wordp\/wp-json\/wp\/v2\/comments?post=697"}],"version-history":[{"count":0,"href":"https:\/\/www.virtualworlduk.co.uk\/wordp\/wp-json\/wp\/v2\/posts\/697\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.virtualworlduk.co.uk\/wordp\/wp-json\/"}],"wp:attachment":[{"href":"https:\/\/www.virtualworlduk.co.uk\/wordp\/wp-json\/wp\/v2\/media?parent=697"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.virtualworlduk.co.uk\/wordp\/wp-json\/wp\/v2\/categories?post=697"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.virtualworlduk.co.uk\/wordp\/wp-json\/wp\/v2\/tags?post=697"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}