Two Efficient Ways to Do Windows Update from Command Line (2023)

Do you want to update Windows? Maybe you can try Windows update Command Line. But before you upgrade Windows, you had better back up your operating system with MiniTool software. Of course, there are other methods for Windows update offered in this article.

Why Do You Need to Update Window?

Every year, Microsoft makes several updates to Windows. Especially Windows 10 has twice security updates every year. You may feel that Windows is so annoying to update so frequently, and you plan to ignore it, however, the risk to your computer will increase.

Most of the updates to Windows are designed to handle security issues. Security is the most important thing for you, because if the security is not enough, your computer can be easily attacked by malware or exploited by hackers.

By patching and improving vulnerabilities in the use of Windows, Microsoft adds new features in Windows Defender and Essentials program to resist malware and enhances Office security.

In addition to improving Windows security, Microsoft will also upgrade the existed programs or add new features to Windows, for example, the Cortana.

When Do You Need to Run Windows Update Command Line?

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.

What to Do Before Updating Windows from Command Line

Before running Windows update Command Line, the most important thing you need to 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 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 the operating system to another hard drive quickly and safely? Here I’m going to introduce a piece of professional and powerful backup software – MiniTool ShadowMaker.

You can back up the operating system, disk, 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 toclone disks, even simple volumes on dynamic disks.

And the best thing about this piece of software is that you can use it for free for 30 days, so why not download it and have a try?

Free Download

And now I will show you how to use MiniTool ShadowMaker to back up the operating system step by step.

Step 1: Launch MiniTool ShadowMaker at first, then choose Keep Trial.

Step 2: MiniTool ShadowMaker backs up the operating system and selects the destination by default. But if you want to change the destination, just click DESTINATION.

Two Efficient Ways to Do Windows Update from Command Line (1)

Step 3: As you can see, MiniTool ShadowMaker supports you to back up your data to five different destinations. You can choose the destination you want to save the backups, and then click OK to continue. It is recommended to choose an external hard drive.

Two Efficient Ways to Do Windows Update from Command Line (2)

There are three backup settingsthat are very useful for you.

(Video) How To Run Windows Update From Command Line

  • Schedule: You can set automatic backup here to avoid losing data by forgetting to back up when you are using your computer.
  • Scheme: You can manage the space occupied by the backed-up files by deleting the specified backup image file versions here.
  • Options: You can set some advanced parameters here, such as setting encryption mode, shutting down after successful backup, adding comments to backup data, etc.

Step 4: If you have confirmed the backup source and backup destination, then click Back Up Now.

Tip: You can also click Back Up Later, but you need to click Back Up Now to restart the backup task on the Manage page.

Two Efficient Ways to Do Windows Update from Command Line (3)

Then after MiniTool ShadowMaker has backed up your operating system successfully, you can run Windows update Command Line.

Tip: You can use MiniTool ShadowMaker to restore your operating system to another computer with only several steps.

After backing up your operating system, I highly recommend you to create bootable media using MiniTool ShadowMaker in case you cannot boot your computer because of a Windows update failure.

Click Media Builder under theTools page after you have inserted a USB flash drive or CD/DVD, then just follow the instructions to create bootable media.

MiniTool ShadowMaker is really a piece of convenient and safe software to back up operating system.Click to Tweet

How to Run Windows Update Command Line?

After keeping data safe, it is time to run Windows update from Command Line. Actually, there are two powerful tools to run Windows update Command Line. One is Windows update Windows PowerShell, another one is Windows update Command Prompt.

Now let’s get started with Windows PowerShell to update Windows.

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 that 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.

Two Efficient Ways to Do Windows Update from Command Line (4)

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

(Video) 40 Windows Commands you NEED to know (in 10 Minutes)

Two Efficient Ways to Do Windows Update from Command Line (5)

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

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

Tip: If you lost data in the process of updating Windows, I highly recommend you to try MiniTool Power Data Recovery to recover lost data.

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 systems, 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.

Two Efficient Ways to Do Windows Update from Command Line (8)

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.

Two Efficient Ways to Do Windows Update from Command Line (9)

Tip: The UsoCLient.exe tool no longer works in certain versions. If you cannot use it for Windows updates, try other ways.

(Video) Windows 10: How to uninstall Updates from the Command Line with WUSA.

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.

What to Do Before Upgrade to Windows 10? Answers Are HereThis article will tell you the things you need to do before upgrade to Windows 10. You need to make sure that you have done these things before upgrade.Read More

Other Ways to Update Windows

There are two other different methods you can use to update Windows.

Use Windows Update Feature

Besides Windows update Command Line, you can also use the Windows Update feature to update Windows.

But how to use Windows Update to update Windows? The detailed instructions are below.

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

Two Efficient Ways to Do Windows Update from Command Line (11)

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.

Then download Windows 10 installation media to a single external hard drive with at least 8 GB available space.

Tip: You’d better back up all the data on the drive because all the data on this drive will be deleted.

(Video) 15 Command Prompt Secrets and Tricks in Windows

And here is the way to reinstall Windows 10 using the installation media.

Step 1: Insert the installation media to your computer, and then open File Explorer to continue.

Step 2: Select the drive with the installation media and double-click on it to continue.

Step 3: Double-click setup.exe at first, and then click Yes to continue.

Step 4: Select one of the following options, and then click Next to continue.

  • Keep personal files and apps – This will preserve your personal data, apps, and settings.
  • Keep personal files only – This will preserve your personal data and settings, but all your apps will be removed.
  • Keep nothing – This will remove all personal data, settings, and apps.

Step 5: Click Install to start reinstalling Windows 10 on your computer.

Your computer will restart several times in the process of reinstallation.

From this article, I have known several ways to update my Windows, and I should update Windows as soon as possible to protect my data and operating system.Click to Tweet

Bottom Line

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.

If you have better advice or any confusion about this article, then you can leave a comment below or contact [emailprotected].

Windows Update Command Line FAQ

How do I stop a Windows Update in Progress?

You can disconnect from the Internet for a couple of minutes, then make sure that the downloading update is stopped. And you can also read this post - How to Stop Windows 10 Update Permanently? Full 7 Solutions to stop Windows 10 Update permanently.

How do I manually update Windows?

  1. Press Win + I keys at the same time to open Settings, then click Update & Security.
  2. Click Windows Update and then click Check for updates in the right panel.
  3. If there are available updates, Windows will download it and install it automatically.

How do I open Windows Update in Windows 10?

Open Settings and then click Update & Security, then choose Windows Update. And you can click Advanced options to choose whether show you a notification when your PC requires a restart to finish updating and some other settings.

What is the use of Windows Update?

Windows Update is a built-in feature that makes your Windows system and other Microsoft programs up to date. And the updates usually contain security updates that can protect your operating system from being attacked by viruses and other things. Sometimes it also contains feature enhancements.

(Video) 9 Command Prompt Commands You Should Know!

FAQs

What are the different ways to update Windows? ›

If you want to install the update now, select Start > Settings > Update & Security > Windows Update , and then select Check for updates. If updates are available, install them.

How to fix Windows Update with command prompt? ›

Solution 1: Use DISM
  1. Open an elevated command prompt. ...
  2. Type the following command, and then press Enter. ...
  3. Type the sfc /scannow command and press Enter. ...
  4. Close the command prompt, and then run Windows Update again.
Dec 29, 2022

What are the two types of updates? ›

Types of updates

Feature updates add new features and functionality to Windows 10. Because they are delivered frequently (rather than every 3-5 years), they are easier to manage. Quality updates: Quality updates deliver both security and non-security fixes.

Which command is used to update? ›

UPDATE Command is used to update existing records in a database. ALTER Command by default initializes values of all the tuple as NULL. UPDATE Command sets specified values in the command to the tuples.

How do I run a system update from terminal? ›

Follow these steps:
  1. Open up a terminal window.
  2. Issue the command sudo apt-get upgrade.
  3. Enter your user's password.
  4. Look over the list of available updates (see Figure 2) and decide if you want to go through with the entire upgrade.
  5. To accept all updates click the 'y' key (no quotes) and hit Enter.
Apr 9, 2022

What is the fastest way to update Windows? ›

  1. #1 Maximize bandwidth for update so the files can be downloaded quickly.
  2. #2 Kill unnecessary apps that slowing the update process down.
  3. #3 Leave it alone to focus computer power to Windows Update.
Sep 25, 2022

What is the best way to upgrade to Windows 10? ›

How do I get Windows 10? You can purchase a full version of Windows 10 Home or Windows 10 Pro for your Windows 7 or Windows 8.1 PC. However, the best way to experience Windows 10 is on a new PC. Today's computers are faster and more powerful and come with Windows 10 already installed.

How do I manually update Windows updates? ›

Select Start > Control Panel > System and Security > Windows Update. In the Windows Update window, select either important updates are available or optional updates are available.

What does DISM command do? ›

Deployment Image Servicing and Management (DISM) is a command-line tool that is used to service Windows images. You can use DISM image management commands to mount and get information about Windows image (. wim) files, Full-flash utility (FFU) files, or virtual hard disks (VHD).

How to update Windows via PowerShell? ›

Manage updates with PowerShell
  1. Open Start.
  2. Search for PowerShell, right-click the top result, and select the Run as administrator option.
  3. Type the following command to download and install all the available updates and reboot the system, and press Enter: Get-WindowsUpdate -AcceptAll -Install -AutoReboot.
Jan 3, 2023

Can you update drivers from command prompt? ›

via Run command – press Win+R keyboard combination simultaneously, in the Open field enter the following command: devmgmt. msc, click OK. via command line – Start button and enter CMD, or Win+S keys and Enter.

What are the two 2 types of system software? ›

Contents
  • 1 Operating systems or system control program.
  • 2 Utility software or system support programs.

What are the two 2 basic type of software? ›

Computer software is typically classified into two major types of programs: system software and application software.

What are the two 2 main types of software and give an example of each? ›

The two main categories of software are application software and system software. An application is software that fulfills a specific need or performs tasks. System software is designed to run a computer's hardware and provides a platform for applications to run on top of.

What is the update method? ›

Definition and Usage. The update() method inserts the specified items to the dictionary. The specified items can be a dictionary, or an iterable object with key value pairs.

Which command is used to install and update package? ›

YUM (Yellowdog Updater Modified) is an open-source command-line as well as graphical-based package management tool for RPM (RedHat Package Manager) based Linux systems. It allows users and system administrators to easily install, update, remove or search software packages on a system.

How do I manually run the update Service? ›

To do this, follow these steps:
  1. Press the Windows logo Key+R to open the Run box.
  2. Type services. msc in the Run box, and then press Enter.
  3. Right-click Windows Update in the Services management console, and then select Stop. ...
  4. After Windows Update stops, right-click Windows Update, and then select Start.
Mar 23, 2022

What is update command give example? ›

Update command is a data manipulation command which is used to edit the records of a table. It may be used to update a single row based on a condition, all rows or set of rows based on the condition given by the user.

How do I force system update? ›

Get the latest Android updates available for you
  1. Open your phone's Settings app.
  2. Near the bottom, tap System. System update.
  3. You'll see your update status. Follow any steps on the screen.

How do I speed up Windows cumulative update? ›

Hardware optimizations:
  1. Run Windows and the update process on fast SSD drives (ensure the Windows partition is on the SSD) instead of HDD by placing the Windows drive in the SSD. ...
  2. For systems with SSD (faster than 3k IOPS), CPU clock speed is the bottleneck and CPU upgrades can make a difference.
Feb 18, 2021

Why is my Windows 10 update so slow? ›

Windows 10 update slow issue can be fixed by extending C drive. Windows update often takes certain storage space on the system C drive. And if the system C drive is out of space after Windows 10 update, the computer running speed will slow down. Extending the system C drive will effectively fix this issue.

How to upgrade from Windows 10 to Windows 11? ›

To check if Windows 11 is ready for your device, go to Start > Settings > Update & Security > Windows Update and select Check for updates. If the upgrade is available for your device and you want to proceed, download and install it.

Can I upgrade to Windows 10 without USB? ›

Solution 2.

Another way to install Windows on a new SSD without a USB is to use a Windows ISO file. By using ISO, you do not need a bootable USB drive or Media Creation Tool to install Windows 11 on a computer running Windows 10. You can mount the ISO file in File Explorer and run the upgrade setup.

Can you manually install a Windows 10 update? ›

How to install Windows 10 updates manually. Visit the Microsoft Update Catalog website in any web browser. Click on the search bar (located at the top right-corner), type the KB number of the Windows Update package you wish to install, and press enter.

How do I fix a Windows Update that won't update? ›

  1. Free up some drive space so you can run updates. ...
  2. Restart to apply installed updates. ...
  3. Run Windows Update again. ...
  4. Disconnect external hardware. ...
  5. Update third-party drivers. ...
  6. Check Device Manager for errors. ...
  7. I received an error code while updating. ...
  8. My update got to 51-99% and won't complete installation.

How can I update Windows without reinstalling? ›

Use the Windows Update feature
  1. Go to Settings > Update & Security > Windows Update.
  2. Click Check for Updates.
  3. Look for Feature update to Windows 11.
  4. Click Download and install.
Feb 2, 2023

Should you run SFC or DISM first? ›

Run SFC first, and only if SFC finds a problem is it necessary to run DISM. Run SFC first, and — no matter what SFC reports — you might as well run DISM after that.

Can DISM repair Windows? ›

DISM (Deployment Image Servicing and Management) is the windows inbuilt command-line tool to fix corrupted or damaged Windows operating system files and features directly from Windows online servers. It is used for both online (currently running operating system) and offline Windows images in a . wim, .

Is DISM a PowerShell command? ›

DISM cmdlet names don't always correspond directly to Dism.exe options. Here is a table that maps DISM commands to their corresponding PowerShell cmdlets.
...
DISM command to DISM cmdlet mapping table.
Dism.exe commandDISM cmdlet
Dism.exe /List-ImageGet-WindowsImageContent
Dism.exe /Mount-ImageMount-WindowsImage
44 more rows
Mar 18, 2021

How to install Windows updates remotely using PowerShell? ›

Remotely installation In Windows Server 2016/Windows 10 and later
  1. Create a new PSsession.
  2. Enable the TLS12 Protocol.
  3. Install the PsWindowsupdate module.
  4. Get the Windows Updates that must be install.
  5. Close the PSSession.
Dec 17, 2021

Does PowerShell update with Windows updates? ›

The Microsoft Update feature of PowerShell allows you to get the latest PowerShell 7 updates in your traditional Microsoft Update (MU) management flow, whether that's with Windows Update for Business, WSUS, Microsoft Endpoint Configuration Manager, or the interactive MU dialog in Settings.

What is the easiest way to update drivers? ›

By far, the simplest way to update your drivers is through Windows itself. If the device manufacturer sends out a driver update, you should get it through an official Windows Update. Windows 10 users can open Settings > Update & Security, then click the big Check for Updates button.

What two options do you have for updating the driver? ›

In Windows 10 and 11 you can choose whether to let Windows automatically download the driver software or do it yourself. Automatic updating is the default and the easiest method, whereby Windows will habitually check for driver updates and install them.

What is the best way to update all drivers? ›

Note: The best and safest way to get driver updates in Windows is always through Windows Update.

What are the two 2 most common operating systems? ›

There are many operating systems that are available however the three most common operating systems are Microsoft's Windows, Apple's macOS and Linux.

What are the two 2 most commonly used operating systems? ›

The three most common operating systems for personal computers are Microsoft Windows, macOS, and Linux. Modern operating systems use a graphical user interface, or GUI (pronounced gooey).

What are the three 3 types of software *? ›

There are different types of software that can run on a computer: system software, utility software, and application software.

Can I update Windows 7 to Windows 11? ›

Unfortunately you can't. You first need to upgrade to Windows 10 and then you can upgrade to windows 11.

Can I upgrade my Windows 8.1 to Windows 10 for free 2022? ›

As a result, you can still upgrade to Windows 10 from Windows 7 or Windows 8.1 and claim a free digital license for the latest Windows 10 version, without being forced to jump through any hoops.

Can I upgrade my Windows 7 to Windows 10? ›

You can upgrade to Windows 10 from Windows 7 or a later operating system. This includes upgrading from one release of Windows 10 to later release of Windows 10. Migrating from one edition of Windows 10 to a different edition of the same release is also supported.

How to update Windows 10 to 11? ›

Install Windows 11

To check if Windows 11 is ready for your device, go to Start > Settings > Update & Security > Windows Update and select Check for updates. If the upgrade is available for your device and you want to proceed, download and install it.

Is Windows 11 still free? ›

Can I upgrade for free? Upgrades to Windows 11 from Windows 10 will be free. Due to the size of the download, however, ISP fees may apply for downloads that occur over metered connections.

How long will Windows 11 be free? ›

Here's the answer, per the FAQ: The free upgrade offer does not have a specific end date for eligible systems. However, Microsoft reserves the right to eventually end support for the free offer. This end date will be no sooner than October 5, 2022.

Is Windows 10 free now 2022? ›

As you can guess, it is very much possible to still upgrade and get Windows 10 for free in 2022. You just need to follow our methods covered above -- from using your existing Windows 7 or Windows 8.1 product key or even getting a license through work or school at no cost.

Will Windows 10 be free forever? ›

The free upgrades will continue into 2022. If you're still running Windows 7 but want to upgrade to Windows 11, you'll first need to upgrade to Windows 10 to be eligible.

Can I still use Windows 8 after 2023? ›

No. Support for Windows 8.1 is discontinued, but the software will continue to function. However, after January 10, 2023, your computer running Windows 8.1 will no longer receive security updates. In addition, Microsoft customer service will no longer be available to provide Windows 8.1 technical support.

How to upgrade Windows 8.1 to 11 free 2022? ›

Just navigate to: Start > Settings > Update & Security > Windows Update > Check for updates and Windows 11 should show up, if your PC is compatible. Then follow the onscreen prompts.

Videos

1. The 2 Most Important Windows Commands
(ThioJoe)
2. Make Windows Terminal look amazing!
(Christian Lempa)
3. Introduction to Linux – Full Course for Beginners
(freeCodeCamp.org)
4. Improve Your Gaming PC Performance Using 2 CMD Commands | Windows 10
(Tricknology)
5. How To Update Windows 10 Using PowerShell Commands
(Alexander C. Hubbard)
6. Inside The Chieftain's Hatch: Dragon Wagon | Part 2
(World of Tanks - Official Channel)

References

Top Articles
Latest Posts
Article information

Author: Carlyn Walter

Last Updated: 08/10/2023

Views: 6195

Rating: 5 / 5 (50 voted)

Reviews: 81% of readers found this page helpful

Author information

Name: Carlyn Walter

Birthday: 1996-01-03

Address: Suite 452 40815 Denyse Extensions, Sengermouth, OR 42374

Phone: +8501809515404

Job: Manufacturing Technician

Hobby: Table tennis, Archery, Vacation, Metal detecting, Yo-yoing, Crocheting, Creative writing

Introduction: My name is Carlyn Walter, I am a lively, glamorous, healthy, clean, powerful, calm, combative person who loves writing and wants to share my knowledge and understanding with you.