{"id":1792,"date":"2022-04-02T03:51:52","date_gmt":"2022-04-02T01:51:52","guid":{"rendered":"https:\/\/nguenkam.com\/blog\/?p=1792"},"modified":"2022-04-03T18:17:56","modified_gmt":"2022-04-03T16:17:56","slug":"how-to-run-windows-updates-from-command-line-in-windows-11-10","status":"publish","type":"post","link":"https:\/\/nguenkam.com\/blog\/index.php\/2022\/04\/02\/how-to-run-windows-updates-from-command-line-in-windows-11-10\/","title":{"rendered":"How to run Windows Updates from Command Line in Windows 11\/10"},"content":{"rendered":"\n<p>According to an emailed statement from Microsoft,&nbsp;<a href=\"https:\/\/computer.howstuffworks.com\/how-to-factory-reset-windows-10.htm\">Windows<\/a>&nbsp;updates ensure that your computer is continuously kept up to date with new innovations and security updates \u2013 this is, they say, the optimum way to ensure users are running the best version of Windows possible. Doing this, says the company, will also protect against loss of data and information theft, among countless other potential problems.<\/p>\n\n\n\n<p><strong>Windows Updates<\/strong>&nbsp;can be run from&nbsp;<strong>PowerShell<\/strong>&nbsp;and&nbsp;<strong>Command Prompt<\/strong>&nbsp;in&nbsp;<strong>Windows 11\/10<\/strong>.<\/p>\n\n\n\n<h4>Run Windows Updates from Command Line<\/h4>\n\n\n\n<p>The following methods will be carried out to run Windows Update from Command Line on Windows 11\/10-<\/p>\n\n\n\n<ol><li>Using Windows Powershell.<\/li><li>Using Command Prompt.<\/li><\/ol>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h4><span class=\"has-inline-color has-vivid-cyan-blue-color\">1] Run Windows Update using Windows Powershell<\/span><\/h4>\n\n\n\n<p>Running Windows Updates on Windows Powershell will require you to manually Install the Windows Update module, Get Windows Updates downloaded and Install Windows Updates. And for this,&nbsp;open Windows Powershell and run it with Administrator level privileges.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-7.png\" alt=\"\" class=\"wp-image-1793\" width=\"460\" height=\"125\" srcset=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-7.png 765w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-7-300x82.png 300w\" sizes=\"(max-width: 460px) 100vw, 460px\" \/><\/figure>\n\n\n\n<ul><li>Install the PSWindowsUpdate Module<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Install-Module PSWindowsUpdate<\/code><\/pre>\n\n\n\n<ul><li>Check for Updates<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-WindowsUpdate \n\/\/connect to the Windows Update servers and download the updates if found.<\/code><\/pre>\n\n\n\n<p><strong><em><span class=\"has-inline-color has-vivid-red-color\">PS<\/span><\/em><\/strong>: <strong>Wenn Sie eine Fehlermeldung erhalten:<\/strong><\/p>\n\n\n\n<p><em>PS C: WINDOWS system32&gt; Get-WindowsUpdateGet-WindowsUpdate: Der Befehl &#8216;Get-WindowsUpdate&#8217; wurde im Modul &#8216;PSWindowsUpdate&#8217; gefunden, das Modul konnte jedoch nicht geladen werden. Weitere Informationen erhalten Sie, wenn Sie das PSWindowsUpdate-Modul importieren. Zeile: 1 Zeichen: 2+ Get-WindowsUpdate + ~~~~~~~~~~~~~~~~~ + + Informationskategorie: ObjectNotFound: (Get-WindowsUpdate: String) (), CommandNotFoundException + FullyQualifiedErrorId: CouldNotAutoloadMatchingModule<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-8.png\" alt=\"\" class=\"wp-image-1798\" width=\"542\" height=\"136\" srcset=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-8.png 811w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-8-300x75.png 300w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-8-768x193.png 768w\" sizes=\"(max-width: 542px) 100vw, 542px\" \/><\/figure>\n\n\n\n<p>To overcome this, let\u00b4s type &#8220;script&#8221; (<em>or skript if you windows is translated in german<\/em>) in the Windows 10 search bar and an option<strong><em> &#8220;Allow local PowerShell scripts to run without logging in&#8221; <\/em><\/strong> will appears. Just  click  on &#8220;Open&#8221; button.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-9.png\" alt=\"\" class=\"wp-image-1799\" width=\"376\" height=\"342\" srcset=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-9.png 778w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-9-300x273.png 300w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-9-768x698.png 768w\" sizes=\"(max-width: 376px) 100vw, 376px\" \/><\/figure>\n\n\n\n<p>then click on the &#8220;apply&#8221; button:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large is-resized\"><img loading=\"lazy\" src=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-10.png\" alt=\"\" class=\"wp-image-1800\" width=\"397\" height=\"305\" srcset=\"https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-10.png 816w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-10-300x231.png 300w, https:\/\/nguenkam.com\/blog\/wp-content\/uploads\/2022\/04\/image-10-768x591.png 768w\" sizes=\"(max-width: 397px) 100vw, 397px\" \/><\/figure>\n\n\n\n<p>Now close PowerShell and run it again as administrator and try to use the command: <em><strong>Get-Windowsupdate<\/strong><\/em><\/p>\n\n\n\n<p><\/p>\n\n\n\n<p><\/p>\n\n\n\n<ul><li>Install Updates<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Install-WindowsUpdate\n\/\/Install the Windows Updates downloaded on your computer.<\/code><\/pre>\n\n\n\n<ul><li>Check for Microsoft Updates<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Add-WUServiceManager -MicrosoftUpdate<\/code><\/pre>\n\n\n\n<ul><li>Install specific updates only<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Get-WindowsUpdate -KBArticleID \"KB1234567\" -Install<\/code><\/pre>\n\n\n\n<ul><li>Skip Updates belonging to specific categories<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>Install-WindowsUpdate -NotCategory \"Drivers\",\"FeaturePacks\" -AcceptAll<\/code><\/pre>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<p><\/p>\n\n\n\n<h4><span class=\"has-inline-color has-vivid-cyan-blue-color\">2] Run Windows Update using Command Prompt<\/span><\/h4>\n\n\n\n<p>Command Prompt on Windows Operating Systems exists since a very long time whereas Windows Powershell is comparatively new. Hence, it has similar capabilities to run Windows Updates, but the highlighting point here is that you do not need to download any module for Windows Updates.<\/p>\n\n\n\n<p><em>First,&nbsp;open Command Prompt  and run it with Administrator level privileges.<\/em><\/p>\n\n\n\n<ul><li>Start checking for updates<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>UsoClient StartScan<\/code><\/pre>\n\n\n\n<ul><li>Start downloading Updates:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>UsoClient StartDownload<\/code><\/pre>\n\n\n\n<ul><li>Start installing the downloaded updates:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>UsoClient StartInstall<\/code><\/pre>\n\n\n\n<ul><li>Restart your device after installing the updates:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>UsoClient RestartDevice<\/code><\/pre>\n\n\n\n<ul><li>Check, Download and Install Updates:<\/li><\/ul>\n\n\n\n<pre class=\"wp-block-code\"><code>UsoClient ScanInstallWait<\/code><\/pre>\n\n\n\n<p><\/p>\n\n\n\n<p><em><strong>PS:<\/strong> It is worth noting that, the Command Prompt commands mentioned above are just meant for Windows 11\/10 only<\/em>.<\/p>\n\n\n\n<div style=\"height:100px\" aria-hidden=\"true\" class=\"wp-block-spacer\"><\/div>\n\n\n\n<h5>Reference:<\/h5>\n\n\n\n<p><a href=\"https:\/\/www.thewindowsclub.com\/\">https:\/\/www.thewindowsclub.com\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>According to an emailed statement from Microsoft,&nbsp;Windows&nbsp;updates ensure that your computer is continuously kept up to date with new innovations and security updates \u2013 this is, they say, the optimum way to ensure users are running the best version of Windows possible. Doing this, says the company, will also protect against loss of data and [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1816,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[93,527,161,217,525,520,526],"_links":{"self":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1792"}],"collection":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=1792"}],"version-history":[{"count":4,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1792\/revisions"}],"predecessor-version":[{"id":1817,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/posts\/1792\/revisions\/1817"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/media\/1816"}],"wp:attachment":[{"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=1792"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=1792"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nguenkam.com\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=1792"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}