Answer the question
In order to leave comments, you need to log in
How to start installing windows updates remotely?
Good afternoon.
Are there utilities/commands for remote work with updates on WSUS clients?
That is, the state is known from the reports - the number of necessary / installed updates. It is clear that there are approved updates. It is clear that the domain policy can set the need for automatic installation.
But it’s completely a mystery to me how, without logging in via RDP (or in interactive mode) and without calling wuapp (a system window for searching and installing updates), you can start the installation command.
Help the inexperienced, please.
Answer the question
In order to leave comments, you need to log in
From free - PowerShell Get-WUInstall :
# Requires PowerShell 5.0 or newer
# Apparently NUGET is required for the PSWINDOWSUPDATE module
Install-PackageProvider NuGet -Force
Import-PackageProvider NuGet -Force
# Apparentely PSWindowsUpdate module comes from the PSGallery and needs to be trusted
# See https://msdn.microsoft.com/en-us/powershell/gallery/psgallery/psgallery_gettingstarted
Set-PSRepository -Name PSGallery -InstallationPolicy Trusted
# Now actually do the update and reboot if necessary
Install-Module PSWindowsUpdate
Get-Command –module PSWindowsUpdate
Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18d -Confirm:$false
Get-WUInstall –WindowsUpdate –AcceptAll –AutoReboot -install
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question