
You can prevent specific updates from installing on your computer using the following PowerShell command: Install-WindowsUpdate -NotKBArticle "KB5002324, KB5002325" -AcceptAll Run Windows Update from Command Prompt (Command-line) Replace the KB number with the one you want to install. of the specific update you want to install, you can run the following command: Get-WindowsUpdate - KBArticleID "KB5002324", "KB5002325" - Install There are two commands involved in this process:ġ- Create a list of computers and pass the list as a variable string: $computer = "comp1, comp2, comp3"Ģ- Now run the following command to start checking for Windows updates on remote computers: Invoke-WUJob -ComputerName $computer -Script -RunNow -Confirm:$false | Out-File "\server\share\logs\$computer-$(Get-Date -f yyyy-MM-dd)-MSUpdates.log" -Force Install specific updates only

The PowerShell module can also be used to deploy Windows updates on remote computers.

If you want to automatically restart your computer after installing all the updates, you can run the following command: Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot Deploy updates on remote computers It’s pretty easy to enable it using PowerShell: Add-WUServiceManager -MicrosoftUpdate If you want to update other Microsoft products as well, you’ll need to enable the Microsoft Update Service as well. The above mentioned command will only install Windows updates.

This command will install the available updates (which were listed in step 2) Install-WindowsUpdate Install WindowsUpdate
