S
S
SergeyNN2018-07-19 19:25:04
Windows
SergeyNN, 2018-07-19 19:25:04

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

2 answer(s)
E
Ezhyg, 2018-07-19
@Ezhyg

wuauclt.exe /detectnow
wuauclt.exe /downloadnow
wuauclt.exe /updatenow

S
SergeyNN, 2018-07-20
@SergeyNN

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

source
But it does not work on all updates. Of the 8 found, I put 7, and although I saw 1, I managed to put it only with a button in wuapp.
And the report itself does not send to wsus. The report proceeds as usual.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question