banner



How To Start Windows Update Service From Command Line

In Microsoft Windows ten, Windows Update can be constitute in Settings –> Update & Security –> Windows Update. Normally Windows Update keeps on running in the background and volition install new updates automatically.

Windows Update checks for new updates randomly every 22 hours. The reason behind the random bank check is that if all the systems in the earth showtime checking for updates at the exact aforementioned time, this would put extreme load on Microsoft servers. That's why Microsoft came up with the idea of checking for updates randomly every day.

You can too run Windows Update manually to check for new updates at whatever time. Hither are three means to check for new Windows updates.

Table of contents

  • Force Windows Update check using Run command dialog
  • Run Windows Update from PowerShell (Command-line)
    • Deploy updates on remote computers
    • Install specific updates only
    • Prevent specific updates from installing
  • Run Windows Update from Command Prompt (Command-line)
  • Check for Windows updates using Windows Settings
  • How to force Windows Update to download already downloaded updates
  • Manage Windows updates using Wuinstall control line tool
  • How to fix corrupted Windows Update

Force Windows Update bank check using Run command dialog

I found out that the easiest way to strength Windows update cheque is to use a control in the Run dialog. There are other commands from CMD and PowerShell besides, but allow's start with the easiest way to practice it.

Open the Run dialog (Windows key + R) or open Windows Search and run the post-obit command:

          command update        

This volition trigger the Windows Update graphical user interface which will start checking for new updates. This method works on all versions of Windows including Windows 10 and Windows 11.

There is another control that will trigger the same result only only works in Windows 10 and Windows 11:

          ms-settings:windowsupdate        

Run Windows Update from PowerShell (Command-line)

In that location is no official Windows PowerShell module for Windows Update. PSWindowsUpdate is a tertiary-political party module that can be used to configure Windows updates in Windows. This module is not installed in Windows by default but you tin can download information technology from PowerShell gallery, install and run the module to bank check for new updates.

At that place are three steps to running Windows Update through PowerShell. Run the post-obit commands step past step:

          Install-Module PSWindowsUpdate        
Install Module PSWindowsUpdate
Install Module PSWindowsUpdate

This will install the Windows Update module in PowerShell.

          Get-WindowsUpdate        
Get WindowsUpdate
Become-WindowsUpdate

This control will check for updates.

          Install-WindowsUpdate        
Install WindowsUpdate
Install WindowsUpdate

This command volition install the available updates (which were listed in step 2)

The above mentioned command will but install Windows updates. If you want to update other Microsoft products equally well, you lot'll need to enable the Microsoft Update Service besides. It's pretty piece of cake to enable information technology using PowerShell:

          Add together-WUServiceManager -MicrosoftUpdate        

If you want to automatically restart your computer later installing all the updates, you can run the following control:

          Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot        

Deploy updates on remote computers

The PowerShell module can besides be used to deploy Windows updates on remote computers. At that place are two commands involved in this process:

1- Create a listing of computers and pass the list as a variable string:

          $computer = "comp1, comp2, comp3"        

2- Now run the post-obit command to start checking for Windows updates on remote computers:

          Invoke-WUJob -ComputerName $estimator -Script {ipmo PSWindowsUpdate; Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot} -RunNow -Confirm:$false | Out-File "\server\share\logs\$figurer-$(Become-Date -f yyyy-MM-dd)-MSUpdates.log" -Forcefulness        

Install specific updates but

If yous already know the Article kb no. of the specific update you want to install, you can run the following control:

          Get-WindowsUpdate - KBArticleID "KB5002324", "KB5002325" -Install        

Supercede the KB number with the one you lot desire to install.

Foreclose specific updates from installing

You can prevent specific updates from installing on your computer using the post-obit PowerShell command:

          Install-WindowsUpdate -NotKBArticle "KB5002324, KB5002325" -AcceptAll        

Run Windows Update from Command Prompt (Command-line)

Windows Update tin likewise be run through legacy CMD to get the latest updates. The simply limitation running Windows Update through the command prompt is that it won't evidence whatever progress. Only results are shown when the process is complete. Let'due south see how to run it:

RestartDevice – Restart Windows after updates are installed

ScanInstallWait – Check for updates, download available updates and install them

  • Press the Windows key + R to open Run dialog.
  • Type cmd and and so printing Ctrl + Shift + Enter to open up the command prompt in administrative manner.
  • Run the following command to check for new updates:
    wuauclt /detectnow
  • Run the following command to install new updates
    wuauclt /updatenow

Since the command prompt does not show whatever progress, a better approach would be to check and install updates at the same time. Here's the control for this:

          wuauclt /detectnow /updatenow        

The above-mentioned command will work in all versions of Windows, including Windows vii and Windows Server 2008 R2. But if you lot are using Windows x or Windows Server 2016, you can utilise UsoClient control which has more than options than wuauclt. Yous tin can run UsoClient with the post-obit switches:

StartScan – Start checking for updates

StartDownload – Start downloading updates

StartInstall – Get-go installing downloaded updates

Check for Windows updates using Windows Settings

To cheque for new updates and configure your Windows Update settings, follow the steps below:

  1. Open up Windows Settings (Windows primal + i).
  2. Choose Update & Security.
  3. Choose Windows Update from the left hand menu.
  4. Press the Check for updates button on the right hand pane.
Check for updates
Check for updates

How to force Windows Update to download already downloaded updates

If you want to forcefulness Windows Update to re-download all the updates again, you tin practice this using the steps below. In that location volition be times when the updates become corrupted or for other reasons, you just don't want to install the downloaded updates. In that situation, y'all can easily delete the already downloaded updates which will for Windows Update to run again and check for and download the updates again.

The but caveat in this situation is that the update must not have been installed on your calculator. If the update is already installed, Windows will observe it equally installed and volition not download information technology again. In that example, you volition need to uninstall the update first and and then force Windows Update to run again.

Step 1: Open File Explorer and go to This PC.

Step two: Open up C:\Windows\SoftwareDistribution\Download
This folder contains all the update files that Windows Operating System is currently downloading or recently downloaded and installed.

Step 3: Delete all the files from the above mentioned binder.

Step four: Run Windows Update again using the above mentioned methods. This will force Windows Update to check for the aforementioned updates and download them again. The download and install process for new updates is completely automated. You don't demand to do anything during the download and installation procedure.

Manage Windows updates using Wuinstall control line tool

Using WuInstall, Information technology Administrators can automate Windows updates. Wuinstall can be used to enforce Windows Updates inquiries, downloads, and installations at times when they deem them appropriate, enabling them to make the unabridged update procedure more than controlled and user friendly.

WuInstall is a strong and flexible organisation direction tool that can be used in a WSUS based or standalone environment. To download the latest updates using Wuinstall, you lot will need to download and install Wuinstall first. Follow the steps below:

Go to http://www.wuinstall.com/ and install the latest costless version of Wuinstall on your figurer. Open Command Prompt in administrative mode

To search for the latest updates, run the following command:

          wuinstall /search        

This will not merely look for new updates but volition too list them in the command window.

To download the updates, run the following command:

          wuinstall /download        

This will download all the available updates from Microsoft servers.

To install the updates, run the post-obit command:

          wuinstall /install        

There are a few more switches that yous can use with the install command

/tranquillity – volition install updates without showing anything.

/disableprompt – Disable any input from Windows

/autoaccepteula –  Auto-accept whatsoever agreement during update installation

/rebootcycle – Install updates on the next computer reboot.

How to fix corrupted Windows Update

Sometimes Windows Update files get corrupted and the user is not able to download the files again or install the corrupted update files. In that instance, we need to run a dism command to gear up corrupted Windows Update. Hither are the steps:

Open the Command Prompt (Run –> cmd) and run the following control:

          dism.exe /Online /Cleanup-image /Restorehealth        

After successfully running this control, effort force downloading the updates again and the Windows Update should start working over again.

Other things you tin do with Windows Update:

Disable or bypass pending updates on Windows 10 (and Windows 11)

How to prevent a specific update from installing while allowing all others

How to view and save a list of installed updates in Windows 10 (and Windows xi)

View updates sizes in Windows 10 (and Windows 11)

Download whatsoever Windows ten cumulative update

How to disable automatic restart later on installing the updates

How to add update packages to Windows 10 ISO paradigm

How to disable automated updates

How to limit Windows Update bandwidth usage

How to install updates offline using CAB and MSU files

Hopefully this will exist useful in situations where you want to automate certain Windows functions. What other purposes do you want to employ command line options to run Windows Update?

Also run across:

Source: https://www.itechtics.com/run-windows-update-cmd/

Posted by: schneiderfelist.blogspot.com

0 Response to "How To Start Windows Update Service From Command Line"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel