How to run Windows Updates from Command Line

There are couple of Run commands for Windows update. The run commands are very handy to launch an application quickly without the need to find the same in list of programs. Windows has a run command for almost every application. You can also use Command Prompt to update Windows.

With the release of Windows 10, Windows is now available as a service rather than a product, so Windows Update on Windows 10 is turned on by default, and you can't disable it, which is one of the highlights of Windows 10.

But sometimes there may be some problems with your computer, causing your Windows 10 not to update automatically. Therefore, you can run Windows update from Command Line.

Run Windows Update Command Line

There are two methods that you can use to run Windows update Command Line.

One is Windows update Windows PowerShell, another one is Windows update Command Prompt.

Windows Update Windows PowerShell

You can update your Windows by using Windows PowerShell, and it only takes four steps to get it done.

PowerShell, as a task-based command-line shell and scripting language, is designed for system administration. In PowerShell, cmdlet, designed to perform specific operations, also typically perform administrative tasks.

The reason administrators can perform administrative tasks on local and remote Windows systems as well as WS-Management and CIM is because PowerShell provides full access to COM and WMI.

Windows PowerShell can execute four kinds of named commands: cmdlets (.NET Framework programs designed to interact with PowerShell), PowerShell scripts (suffixed with .ps1), PowerShell functions, and stand-alone executable programs. PowerShell also provides an interactive command-line interface where you can enter commands and display their output.

Here's how to update Windows with Windows PowerShell.

Step 1: Type powershell in the search box next Cortana, and right-click the top one, then choose Run as administrator and click Yes to continue.


Step 2: Enter Install-Module PSWindowsUpdate to install Windows update module.


Step 3: Enter Get-WindowsUpdate to check for updates.

Step 4: Enter Install-WindowsUpdate to install the available updates.

After the four steps, you can update Windows using Windows PowerShell.

Windows Update Command Prompt

Except using Windows PowerShell to update Windows, you can also use Command Prompt to update Windows, which has existed for a long time on Windows operating system. But there is a limitation using this method: it will only show the results without showing any progress.

Command Prompt, as a command line interpreter application in most Windows operating system, is used to execute typed commands. Through scripts and batch files, many commands automate tasks, and can perform advanced administrative functions.

So how to use Command Prompt to update Windows? It depends on which operating system you are using.

1. If your operating system is Windows 10, you can do the following instructions to update Windows.

Step 1: Type cmd in the search box next to Cortana, and right-click the top one, then choose Run as administrator and click Yes to continue.

Step 2: Type UsoClient StartScan to check for updates.

Step 3: Type UsoClient StartDownload to download updates.

Step 4: Type UsoClient StartInstall to install the download updates.

Step 5: Type UsoClient RestartDevice to restart your device after installing the updates.

Step 6: Type UsoClient ScanInstallWait to check, download and install updates.

2. If you are using older versions’ operating system, you need to enter the following instructions in the Command Prompt window one by one.

Step 1: Enter wuauclt /detectnow to check for updates.

Step 2: Enter wuauclt /updatenow to start installing the detected updates.

Step 3: Enter wuauclt /detectnow /updatenow to check, download and install updates.

After doing these instructions step by step, you can update your Windows.

More Ways to Update Windows

Apart from the methods mentioned above, there are two other different methods you can use to update Windows.

Use Windows Update Feature

Step 1: Open Settings to choose Update & Security to continue.

Step 2: Choose Windows Update and click Check for updates to continue.

Step 3: After the Windows finds the available updates, click Restart now.

Then you just need to wait for the Windows to update. With this method, you can also update Windows.

Reinstall Windows

Actually, you can also reinstall Windows to perform Windows update. Let’s take Windows 10 as an example.

Before reinstalling Windows 10, you need to create installation media for reinstalling.

You’d better back up all the files in the computer you want to an external storage device or upload them to OneDrive or other Clouds to keep data safe.

Before Updating Windows from Command Line

Before running Windows update Command Line, the most important thing you need do is to back up your operating system.

Some people will encounter some problems in reinstalling the system, causing the reinstallation system to fail. Similarly, some people will fail to upgrade Windows. The upgrade failure is likely to cause data loss, system file corruption, and so on.

So in order to avoid the system corruption caused by the upgrade failure or the computer cannot start, you can back up the system to another hard drive in advance or make a bootable external hard drive.

But how to back up operating system to another hard drive quickly and safely? Here I strongly recommend a piece of professional and powerful backup software – MiniTool ShadowMaker.

You can back up operating system, disk and partition, files and folders. And then you can restore them when you need them. Besides, you can also sync files and folders using the software to avoid data loss as much as possible. It also enables you clone disks, even simple volumes on dynamic disks.

To check out how to back up before updating Windows from Command line with MiniTool ShadowMaker, refer to the post.

Final Words

When you want to update your operating system, you should back up your operating system in advance to avoid data loss during the upgrade process. When upgrading Windows, you can use the Command Line to upgrade, or you can use other methods to upgrade Windows.

Finally, never ignore every update, because every update is for your computer to enhance your data protection.

News From
MiniTool Solution

  • Issue by:Quirk
  • Web:http://
  • About Viv-Media|Free Add URL|Submit Press Release|Submit How To|SiteMap|Advertise with Us|Help|Contact Viv-Media |China Viv-Media
  • Copyright© 2010-2020 Corporation.
    Use of this web site constitutes acceptance of the Viv-Media Terms of Service and Privacy Policy. All rights reserved.  Poetry Online :Ancient Chinese Poetry