{"id":4550,"date":"2020-04-23T01:02:55","date_gmt":"2020-04-23T01:02:55","guid":{"rendered":"https:\/\/pariswells.com\/blog\/?p=4550"},"modified":"2022-12-02T03:18:25","modified_gmt":"2022-12-02T03:18:25","slug":"powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period","status":"publish","type":"post","link":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period","title":{"rendered":"Powershell &#8211; How to report on Windows Updates for a server over a yearly Period"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">For auditing purposes you will need to report on the updates install on a server and the install status.&nbsp;<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Below is a&nbsp; powershell script that does just that<\/p>\n\n\n<div class=\"wp-block-wab-pastacode\">\n\t<div class=\"code-embed-wrapper\"> <pre class=\"language-markup code-embed-pre line-numbers\"  data-start=\"1\" data-line-offset=\"0\"><code class=\"language-markup code-embed-code\">$operation=@(\u2018Unk\u2019,\u2019Installation\u2019,\u2019Uninstallation\u2019,\u2019Other\u2019)<br\/>$resultCode=@(\u2018Unk\u2019,\u2019In Progress\u2019,\u2019Succeeded\u2019,\u2019Succeeded With Errors\u2019,\u2019Failed\u2019,\u2019Aborted\u2019)<br\/><br\/>$updateSession=New-Object -ComObject Microsoft.Update.Session<br\/>$updateSearcher=$updateSession.CreateUpdateSearcher() <br\/>$historyCount=$updateSearcher.GetTotalHistoryCount() <br\/>$updateSearcher.QueryHistory(0, $historyCount) | <br\/>    Select-Object Date,<br\/>                @{N=\u2019Operation\u2019;E={$operation[$_.operation]}},<br\/>                @{N=\u2019Status\u2019;E={$resultCode[$_.resultcode]}},<br\/>                Title |<br\/>    Format-Table -AutoSize<\/code><\/pre> <div class=\"code-embed-infos\"> <\/div> <\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>For auditing purposes you will need to report on the updates install on a server and the install status.&nbsp; Below is a&nbsp; powershell script that does just [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[2548,2725,576,2191,3201],"class_list":["post-4550","post","type-post","status-publish","format-standard","hentry","category-research","tag-audit","tag-list","tag-powershell","tag-windows-update","tag-year"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 4.9.9 - aioseo.com -->\n\t<meta name=\"description\" content=\"For auditing purposes you will need to report on the updates install on a server and the install status. Below is a powershell script that does just that\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"paris\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 4.9.9\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"Welcome to Pariswells.com |\" \/>\n\t\t<meta property=\"og:type\" content=\"article\" \/>\n\t\t<meta property=\"og:title\" content=\"Powershell \u2013 How to report on Windows Updates for a server over a yearly Period | Welcome to Pariswells.com\" \/>\n\t\t<meta property=\"og:description\" content=\"For auditing purposes you will need to report on the updates install on a server and the install status. Below is a powershell script that does just that\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period\" \/>\n\t\t<meta property=\"article:published_time\" content=\"2020-04-23T01:02:55+00:00\" \/>\n\t\t<meta property=\"article:modified_time\" content=\"2022-12-02T03:18:25+00:00\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Powershell \u2013 How to report on Windows Updates for a server over a yearly Period | Welcome to Pariswells.com\" \/>\n\t\t<meta name=\"twitter:description\" content=\"For auditing purposes you will need to report on the updates install on a server and the install status. Below is a powershell script that does just that\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#article\",\"name\":\"Powershell \\u2013 How to report on Windows Updates for a server over a yearly Period | Welcome to Pariswells.com\",\"headline\":\"Powershell &#8211; How to report on Windows Updates for a server over a yearly Period\",\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"},\"datePublished\":\"2020-04-23T01:02:55+00:00\",\"dateModified\":\"2022-12-02T03:18:25+00:00\",\"inLanguage\":\"en-US\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#webpage\"},\"articleSection\":\"Research, audit, list, powershell, Windows Update, year\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"position\":2,\"name\":\"Research\",\"item\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#listItem\",\"name\":\"Powershell &#8211; How to report on Windows Updates for a server over a yearly Period\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#listItem\",\"position\":3,\"name\":\"Powershell &#8211; How to report on Windows Updates for a server over a yearly Period\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/category\\\/research#listItem\",\"name\":\"Research\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\",\"name\":\"Welcome to Pariswells.com\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris\",\"name\":\"paris\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"paris\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#webpage\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period\",\"name\":\"Powershell \\u2013 How to report on Windows Updates for a server over a yearly Period | Welcome to Pariswells.com\",\"description\":\"For auditing purposes you will need to report on the updates install on a server and the install status. Below is a powershell script that does just that\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/research\\\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/author\\\/paris#author\"},\"datePublished\":\"2020-04-23T01:02:55+00:00\",\"dateModified\":\"2022-12-02T03:18:25+00:00\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/\",\"name\":\"Welcome to Pariswells.com\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/pariswells.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Powershell \u2013 How to report on Windows Updates for a server over a yearly Period | Welcome to Pariswells.com","description":"For auditing purposes you will need to report on the updates install on a server and the install status. Below is a powershell script that does just that","canonical_url":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#article","name":"Powershell \u2013 How to report on Windows Updates for a server over a yearly Period | Welcome to Pariswells.com","headline":"Powershell &#8211; How to report on Windows Updates for a server over a yearly Period","author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"},"datePublished":"2020-04-23T01:02:55+00:00","dateModified":"2022-12-02T03:18:25+00:00","inLanguage":"en-US","mainEntityOfPage":{"@id":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#webpage"},"isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#webpage"},"articleSection":"Research, audit, list, powershell, Windows Update, year"},{"@type":"BreadcrumbList","@id":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","position":1,"name":"Home","item":"https:\/\/pariswells.com\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","position":2,"name":"Research","item":"https:\/\/pariswells.com\/blog\/category\/research","nextItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#listItem","name":"Powershell &#8211; How to report on Windows Updates for a server over a yearly Period"},"previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#listItem","position":3,"name":"Powershell &#8211; How to report on Windows Updates for a server over a yearly Period","previousItem":{"@type":"ListItem","@id":"https:\/\/pariswells.com\/blog\/category\/research#listItem","name":"Research"}}]},{"@type":"Organization","@id":"https:\/\/pariswells.com\/blog\/#organization","name":"Welcome to Pariswells.com","url":"https:\/\/pariswells.com\/blog\/"},{"@type":"Person","@id":"https:\/\/pariswells.com\/blog\/author\/paris#author","url":"https:\/\/pariswells.com\/blog\/author\/paris","name":"paris","image":{"@type":"ImageObject","@id":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/93b8ee3f592ac401167f870452bd82d43de80152cd3524e2853403658ada9984?s=96&d=mm&r=g","width":96,"height":96,"caption":"paris"}},{"@type":"WebPage","@id":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#webpage","url":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period","name":"Powershell \u2013 How to report on Windows Updates for a server over a yearly Period | Welcome to Pariswells.com","description":"For auditing purposes you will need to report on the updates install on a server and the install status. Below is a powershell script that does just that","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/pariswells.com\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period#breadcrumblist"},"author":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"creator":{"@id":"https:\/\/pariswells.com\/blog\/author\/paris#author"},"datePublished":"2020-04-23T01:02:55+00:00","dateModified":"2022-12-02T03:18:25+00:00"},{"@type":"WebSite","@id":"https:\/\/pariswells.com\/blog\/#website","url":"https:\/\/pariswells.com\/blog\/","name":"Welcome to Pariswells.com","inLanguage":"en-US","publisher":{"@id":"https:\/\/pariswells.com\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"Welcome to Pariswells.com |","og:type":"article","og:title":"Powershell \u2013 How to report on Windows Updates for a server over a yearly Period | Welcome to Pariswells.com","og:description":"For auditing purposes you will need to report on the updates install on a server and the install status. Below is a powershell script that does just that","og:url":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period","article:published_time":"2020-04-23T01:02:55+00:00","article:modified_time":"2022-12-02T03:18:25+00:00","twitter:card":"summary","twitter:title":"Powershell \u2013 How to report on Windows Updates for a server over a yearly Period | Welcome to Pariswells.com","twitter:description":"For auditing purposes you will need to report on the updates install on a server and the install status. Below is a powershell script that does just that"},"aioseo_meta_data":{"post_id":"4550","title":null,"description":null,"keywords":[],"keyphrases":{"focus":{"keyphrase":"","score":0,"analysis":{"keyphraseInTitle":{"score":0,"maxScore":9,"error":1}}},"additional":[]},"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":"","og_custom_url":null,"og_article_section":null,"og_article_tags":[],"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":"-1","robots_max_videopreview":"-1","robots_max_imagepreview":"large","priority":null,"frequency":"default","location":null,"local_seo":null,"breadcrumb_settings":null,"limit_modified_date":false,"ai":null,"created":"2020-12-21 05:27:07","updated":"2022-12-02 03:24:10","primary_term":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/pariswells.com\/blog\/category\/research\" title=\"Research\">Research<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tPowershell \u2013 How to report on Windows Updates for a server over a yearly Period\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/pariswells.com\/blog"},{"label":"Research","link":"https:\/\/pariswells.com\/blog\/category\/research"},{"label":"Powershell &#8211; How to report on Windows Updates for a server over a yearly Period","link":"https:\/\/pariswells.com\/blog\/research\/powershell-how-to-report-on-windows-updates-for-a-server-over-a-yearly-period"}],"_links":{"self":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4550","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/comments?post=4550"}],"version-history":[{"count":3,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4550\/revisions"}],"predecessor-version":[{"id":6465,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/posts\/4550\/revisions\/6465"}],"wp:attachment":[{"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/media?parent=4550"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/categories?post=4550"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/pariswells.com\/blog\/wp-json\/wp\/v2\/tags?post=4550"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}