http://pleasework.robbievance.net/howto-force-really-wsus-clients-to-check-in-on-demand/

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#### Primes then reports
$updateSession = new-object -com Microsoft.Update.Session; $updates=$updateSession.CreateupdateSearcher().Search($criteria).Updates
wuauclt /reportnow
Set-MpPreference -SignatureUpdateInterval 1 -SignatureFallbackOrder {InternalDefinitionUpdateServer | MicrosoftUpdateServer | MMPC}
Update-MpSignature
# From <https://docs.microsoft.com/en-us/powershell/module/defender/update-mpsignature?view=windowsserver2019-ps>
# Scan, download and install Windows Updates with PowerShell | 4sysops
$updates = Start-WUScan
Install-WUUpdates $updates
Get-WUIsPendingReboot
# https://docs.microsoft.com/en-us/windows/deployment/update/waas-manage-updates-wsus
# https://microsoftgeek.com/?p=2247
# https://www.stephenwagner.com/2019/05/15/guide-using-installing-wsus-windows-server-core-2019/
#### WSUS on Server Core
# https://mcpmag.com/articles/2017/08/10/automate-wsus-using-the-powershell-updateservices.aspx
# https://docs.microsoft.com/en-us/troubleshoot/mem/configmgr/reindex-the-wsus-database
SQLCMD /?
# If error code returned is 0 SQLCMD is present. If not, it is not installed.
# http://woshub.com/schedule-task-to-start-when-another-task-finishes/
#### Extracting descriptions from WSUS DB
# https://serverfault.com/questions/704553/can-i-change-the-update-descriptions-in-wsus
Get-WsusUpdate -UpdateId b8c3207f-4469-46b3-9a0f-b4057b54add3 | select *
$update = $wsus.SearchUpdates(KB890830)