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