{"id":587,"date":"2018-05-17T13:56:04","date_gmt":"2018-05-17T12:56:04","guid":{"rendered":"https:\/\/ketandesai.co.uk\/?p=587"},"modified":"2026-03-20T22:11:43","modified_gmt":"2026-03-20T22:11:43","slug":"windows-updates-via-powershell","status":"publish","type":"post","link":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/","title":{"rendered":"Windows updates via PowerShell"},"content":{"rendered":"<p>So with windows updates being temperamental at times i have found that windows PowerShell also has a module for updates. i have been using it for a while and seems to work every time with out failure. it is super simple.<\/p>\n<h5>PowerShell Module<\/h5>\n<p>https:\/\/gallery.technet.microsoft.com\/scriptcenter\/2d191bcd-3308-4edd-9de2-88dff796b0bc<\/p>\n<p>Copy the whole module folder (after unzipping) to %WINDIR%\\System32\\WindowsPowerShell\\v1.0\\Modules<\/p>\n<h5>Setup<\/h5>\n<p>Start up PowerShell ISE as admin from admin tools<\/p>\n<ul>\n<li>Set-ExecutionPolicy<\/li>\n<\/ul>\n<p>Set-ExecutionPolicy RemoteSigned<\/p>\n<ul>\n<li>Import-Module<\/li>\n<\/ul>\n<p>Import-Module PSWindowsUpdate<\/p>\n<ul>\n<li>Run the Update module<\/li>\n<\/ul>\n<p>Get-WUInstall<\/p>\n<p>The rest should be automated with some prompts<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So with windows updates being temperamental at times i have found that windows PowerShell also has a module for updates. i have been using it for a while and seems to work every time with out failure. it is super simple. PowerShell Module https:\/\/gallery.technet.microsoft.com\/scriptcenter\/2d191bcd-3308-4edd-9de2-88dff796b0bc Copy the whole module folder (after unzipping) to %WINDIR%\\System32\\WindowsPowerShell\\v1.0\\Modules Setup Start [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":991,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[45,141,58,10],"tags":[138,139,140,142,9,143],"class_list":["post-587","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-os","category-server-2008","category-server-2012","category-windows","tag-os","tag-plugins","tag-powershell","tag-update","tag-windows-2","tag-windows-updates"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Windows updates via PowerShell - Ketan Desai<\/title>\n<meta name=\"description\" content=\"Windows update via powershell\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Windows updates via PowerShell - Ketan Desai\" \/>\n<meta property=\"og:description\" content=\"Windows update via powershell\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/\" \/>\n<meta property=\"og:site_name\" content=\"Ketan Desai\" \/>\n<meta property=\"article:published_time\" content=\"2018-05-17T12:56:04+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-03-20T22:11:43+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/ketandesai.co.uk\/wp-content\/uploads\/2018\/05\/Powershell-335x150-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"335\" \/>\n\t<meta property=\"og:image:height\" content=\"150\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Ketan Desai\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Ketan Desai\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/\"},\"author\":{\"name\":\"Ketan Desai\",\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/#\\\/schema\\\/person\\\/76fbe7aaa79643c166c5c2475fc01424\"},\"headline\":\"Windows updates via PowerShell\",\"datePublished\":\"2018-05-17T12:56:04+00:00\",\"dateModified\":\"2026-03-20T22:11:43+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/\"},\"wordCount\":104,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/#\\\/schema\\\/person\\\/76fbe7aaa79643c166c5c2475fc01424\"},\"image\":{\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ketandesai.co.uk\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/Powershell-335x150-1.png\",\"keywords\":[\"OS\",\"plugins\",\"PowerShell\",\"update\",\"windows\",\"Windows updates\"],\"articleSection\":[\"Operating Systems\",\"Server 2008\",\"Server 2012\",\"Windows\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/\",\"url\":\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/\",\"name\":\"Windows updates via PowerShell - Ketan Desai\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/ketandesai.co.uk\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/Powershell-335x150-1.png\",\"datePublished\":\"2018-05-17T12:56:04+00:00\",\"dateModified\":\"2026-03-20T22:11:43+00:00\",\"description\":\"Windows update via powershell\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/#primaryimage\",\"url\":\"https:\\\/\\\/ketandesai.co.uk\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/Powershell-335x150-1.png\",\"contentUrl\":\"https:\\\/\\\/ketandesai.co.uk\\\/wp-content\\\/uploads\\\/2018\\\/05\\\/Powershell-335x150-1.png\",\"width\":335,\"height\":150},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/2018\\\/05\\\/17\\\/windows-updates-via-powershell\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/ketandesai.co.uk\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Windows updates via PowerShell\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/#website\",\"url\":\"https:\\\/\\\/ketandesai.co.uk\\\/\",\"name\":\"Ketan Desai\",\"description\":\"Anything IT\",\"publisher\":{\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/#\\\/schema\\\/person\\\/76fbe7aaa79643c166c5c2475fc01424\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/ketandesai.co.uk\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/ketandesai.co.uk\\\/#\\\/schema\\\/person\\\/76fbe7aaa79643c166c5c2475fc01424\",\"name\":\"Ketan Desai\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6587572e3884edb2f25ce127069b15f15da32278153bc9b4d2568156fcb6ec41?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6587572e3884edb2f25ce127069b15f15da32278153bc9b4d2568156fcb6ec41?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6587572e3884edb2f25ce127069b15f15da32278153bc9b4d2568156fcb6ec41?s=96&d=mm&r=g\",\"caption\":\"Ketan Desai\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/6587572e3884edb2f25ce127069b15f15da32278153bc9b4d2568156fcb6ec41?s=96&d=mm&r=g\"},\"sameAs\":[\"http:\\\/\\\/staging.ketandesai.co.uk\"],\"url\":\"https:\\\/\\\/ketandesai.co.uk\\\/index.php\\\/author\\\/ketandesaiadmin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Windows updates via PowerShell - Ketan Desai","description":"Windows update via powershell","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/","og_locale":"en_GB","og_type":"article","og_title":"Windows updates via PowerShell - Ketan Desai","og_description":"Windows update via powershell","og_url":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/","og_site_name":"Ketan Desai","article_published_time":"2018-05-17T12:56:04+00:00","article_modified_time":"2026-03-20T22:11:43+00:00","og_image":[{"width":335,"height":150,"url":"https:\/\/ketandesai.co.uk\/wp-content\/uploads\/2018\/05\/Powershell-335x150-1.png","type":"image\/png"}],"author":"Ketan Desai","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Ketan Desai","Estimated reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/#article","isPartOf":{"@id":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/"},"author":{"name":"Ketan Desai","@id":"https:\/\/ketandesai.co.uk\/#\/schema\/person\/76fbe7aaa79643c166c5c2475fc01424"},"headline":"Windows updates via PowerShell","datePublished":"2018-05-17T12:56:04+00:00","dateModified":"2026-03-20T22:11:43+00:00","mainEntityOfPage":{"@id":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/"},"wordCount":104,"commentCount":0,"publisher":{"@id":"https:\/\/ketandesai.co.uk\/#\/schema\/person\/76fbe7aaa79643c166c5c2475fc01424"},"image":{"@id":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/ketandesai.co.uk\/wp-content\/uploads\/2018\/05\/Powershell-335x150-1.png","keywords":["OS","plugins","PowerShell","update","windows","Windows updates"],"articleSection":["Operating Systems","Server 2008","Server 2012","Windows"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/","url":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/","name":"Windows updates via PowerShell - Ketan Desai","isPartOf":{"@id":"https:\/\/ketandesai.co.uk\/#website"},"primaryImageOfPage":{"@id":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/#primaryimage"},"image":{"@id":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/#primaryimage"},"thumbnailUrl":"https:\/\/ketandesai.co.uk\/wp-content\/uploads\/2018\/05\/Powershell-335x150-1.png","datePublished":"2018-05-17T12:56:04+00:00","dateModified":"2026-03-20T22:11:43+00:00","description":"Windows update via powershell","breadcrumb":{"@id":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/#primaryimage","url":"https:\/\/ketandesai.co.uk\/wp-content\/uploads\/2018\/05\/Powershell-335x150-1.png","contentUrl":"https:\/\/ketandesai.co.uk\/wp-content\/uploads\/2018\/05\/Powershell-335x150-1.png","width":335,"height":150},{"@type":"BreadcrumbList","@id":"https:\/\/ketandesai.co.uk\/index.php\/2018\/05\/17\/windows-updates-via-powershell\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ketandesai.co.uk\/"},{"@type":"ListItem","position":2,"name":"Windows updates via PowerShell"}]},{"@type":"WebSite","@id":"https:\/\/ketandesai.co.uk\/#website","url":"https:\/\/ketandesai.co.uk\/","name":"Ketan Desai","description":"Anything IT","publisher":{"@id":"https:\/\/ketandesai.co.uk\/#\/schema\/person\/76fbe7aaa79643c166c5c2475fc01424"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ketandesai.co.uk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/ketandesai.co.uk\/#\/schema\/person\/76fbe7aaa79643c166c5c2475fc01424","name":"Ketan Desai","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/6587572e3884edb2f25ce127069b15f15da32278153bc9b4d2568156fcb6ec41?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/6587572e3884edb2f25ce127069b15f15da32278153bc9b4d2568156fcb6ec41?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/6587572e3884edb2f25ce127069b15f15da32278153bc9b4d2568156fcb6ec41?s=96&d=mm&r=g","caption":"Ketan Desai"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/6587572e3884edb2f25ce127069b15f15da32278153bc9b4d2568156fcb6ec41?s=96&d=mm&r=g"},"sameAs":["http:\/\/staging.ketandesai.co.uk"],"url":"https:\/\/ketandesai.co.uk\/index.php\/author\/ketandesaiadmin\/"}]}},"jetpack_featured_media_url":"https:\/\/ketandesai.co.uk\/wp-content\/uploads\/2018\/05\/Powershell-335x150-1.png","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/ketandesai.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/587","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ketandesai.co.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ketandesai.co.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ketandesai.co.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ketandesai.co.uk\/index.php\/wp-json\/wp\/v2\/comments?post=587"}],"version-history":[{"count":1,"href":"https:\/\/ketandesai.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/587\/revisions"}],"predecessor-version":[{"id":992,"href":"https:\/\/ketandesai.co.uk\/index.php\/wp-json\/wp\/v2\/posts\/587\/revisions\/992"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ketandesai.co.uk\/index.php\/wp-json\/wp\/v2\/media\/991"}],"wp:attachment":[{"href":"https:\/\/ketandesai.co.uk\/index.php\/wp-json\/wp\/v2\/media?parent=587"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ketandesai.co.uk\/index.php\/wp-json\/wp\/v2\/categories?post=587"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ketandesai.co.uk\/index.php\/wp-json\/wp\/v2\/tags?post=587"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}