How To Run Windows Update From Command Line

In Microsoft Windows 10, Windows Update can be found in Settings – > Update & Security – > Windows Update…. In Microsoft Windows 10, Windows Update can be found in Settings – > Update & Security – > Windows Update. Normally Windows Update keeps on running in the background and will install new updates automatically.

Advertisement

Windows Update checks for new updates randomly every 22 hours. The argue behind the random determine is that if all the systems in the global get down checking for updates at the accurate lapp time, this would put extreme lode on Microsoft servers. That ’ s why Microsoft came up with the mind of checking for updates randomly every day. You can besides run Windows Update manually to check for new updates at any clock time. here are three ways to check for new Windows updates.

I found out that the easiest means to force Windows update check is to use a command in the Run dialogue. There are other commands from CMD and PowerShell equally well, but let ’ s depart with the easiest way to do it. Open the Run dialogue ( Windows key + R ) or open Windows Search and run the follow control :

control update

This will trigger the Windows Update graphic exploiter interface which will start checking for new updates. This method acting works on all versions of Windows including Windows 10 and Windows 11. There is another command that will trigger the lapp consequence but only works in Windows 10 and Windows 11 :

ms-settings:windowsupdate

There is no official Windows PowerShell module for Windows Update. PSWindowsUpdate is a third-party module that can be used to configure Windows updates in Windows. This module is not installed in Windows by default but you can download it from PowerShell gallery, install and run the faculty to check for new updates.

There are three steps to running Windows Update through PowerShell. Run the following commands step by mistreat :

Install-Module PSWindowsUpdate

Install Module PSWindowsUpdate This will install the Windows Update module in PowerShell .

Get-WindowsUpdate

Get-WindowsUpdate This command will check for updates.

Install-WindowsUpdate

Install WindowsUpdate This command will install the available updates ( which were listed in step 2 ) The above mentioned command will entirely install Windows updates. If you want to update other Microsoft products american samoa well, you ’ ll indigence to enable the Microsoft Update Service american samoa well. It ’ mho pretty comfortable to enable it using PowerShell :

Add-WUServiceManager -MicrosoftUpdate

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

Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot

The PowerShell module can besides be used to deploy Windows updates on outside computers. There are two commands involved in this serve : 1- Create a list of computers and pass the list as a variable string :

$computer = "comp1, comp2, comp3"

2- now run the be control to start checking for Windows updates on distant computers :

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

If you already know the Article kb no. of the specific update you want to install, you can run the pursue command :

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

Replace the KB number with the one you want to install .

You can prevent specific updates from installing on your computer using the following PowerShell dominate :

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

Windows Update can besides be run through bequest CMD to get the latest updates. The lone limitation running Windows Update through the command prompt is that it won ’ deoxythymidine monophosphate indicate any progress. only results are shown when the process is complete. Let ’ s 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 then press Ctrl + Shift + Enter to open the command prompt in administrative mode.
  • Run the following command to check for new updates:
    wuauclt /detectnow 
  • Run the following command to install new updates
    wuauclt /updatenow

Since the command motivate does not show any progress, a better access would be to check and install updates at the lapp fourth dimension. here ’ s the command for this :

wuauclt /detectnow /updatenow

The above-mentioned command will work in all versions of Windows, including Windows 7 and Windows Server 2008 R2. But if you are using Windows 10 or Windows Server 2016, you can use UsoClient command which has more options than wuauclt. You can run UsoClient with the come switches :

StartScan – Start checking for updates

StartDownload – Start downloading updates StartInstall – Start installing downloaded updates

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

  1. Open Windows Settings (Windows key + 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

If you want to force Windows Update to re-download all the updates again, you can do this using the steps below. There will be times when the updates become bribe or for other reasons, you merely don ’ triiodothyronine want to install the download updates. In that position, you can easily delete the already downloaded updates which will for Windows Update to run again and check for and download the updates again. The only caveat in this position is that the update must not have been installed on your computer. If the update is already installed, Windows will detect it as installed and will not download it again. In that subject, you will need to uninstall the update first and then storm Windows Update to run again. Step 1 : open File Explorer and go to This PC. Step 2 : open C:\Windows\SoftwareDistribution\Download
This booklet contains all the update files that Windows Operating System is presently downloading or recently downloaded and installed. Step 3 : Delete all the files from the above mentioned booklet. Step 4 : Run Windows Update again using the above mentioned methods. This will force Windows Update to check for the like updates and download them again. The download and install work for newly updates is completely automated. You don ’ t need to do anything during the download and initiation process .

Using WuInstall, IT 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 entire update serve more control and user friendly. WuInstall is a strong and compromising system management instrument that can be used in a WSUS based or standalone environment. To download the latest updates using Wuinstall, you will need to download and install Wuinstall first. Follow the steps below : Go to http : //www.wuinstall.com/ and install the latest dislodge version of Wuinstall on your computer. open Command Prompt in administrative modality To search for the latest updates, run the be command :

wuinstall /search

This will not merely look for raw updates but will besides list them in the command window. To download the updates, run the follow command :

wuinstall /download

This will download all the available updates from Microsoft servers. To install the updates, run the follow command :

wuinstall /install

There are a few more switches that you can use with the install command /quiet – will install updates without showing anything. /disableprompt – Disable any stimulation from Windows /autoaccepteula – Auto-accept any agreement during update facility /rebootcycle – Install updates on the adjacent computer boot .

sometimes Windows Update files get corrupted and the user is not able to download the files again or install the defile update files. In that sheath, we need to run a dism command to fix bribe Windows Update. hera are the steps : Open the Command Prompt ( Run – > cmd ) and run the follow control :

dism.exe /Online /Cleanup-image /Restorehealth

After successfully running this command, try push downloading the updates again and the Windows Update should start working again. early things you can do with Windows Update : disable or beltway 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 install updates in Windows 10 ( and Windows 11 ) View updates sizes in Windows 10 ( and Windows 11 ) Download any Windows 10 accumulative update How to disable automatic restart after installing the updates How to add update packages to Windows 10 ISO image How to disable automatic updates

How to limit Windows Update bandwidth usage How to install updates offline using CAB and MSU files Hopefully this will be useful in situations where you want to automate certain Windows functions. What other purposes do you want to use command line options to run Windows Update ? besides see :

Subscribe to our Newsletter

Get the latest technical school newsworthiness, advice and downloads in your inbox

source : https://swivelcard.info
Category : Tech FAQ

Related Posts

Leave a Reply

Your email address will not be published.