Working with WSUS is not a relatively easy task, for ease of troubleshooting and fixing updates erroros, there is a needed to know a bunch of useful commands such as the WAUACLT, PowerShell and USOClient.
WUAUCLT refers to Windows Update Automatic Update Client. This command has been replaced in the most recent versions of Windows OS with the USOclient. Note: (WUAUCLT tool still works very well to date on Windows 2016. I tested and they worked great.
Please find below a list of commands that can be used alongside WUACLT and their explanations below. The first three (3) are probably the most usedcommands of WUAUCLT.
WUACLT /detectnow: Detect and download updates that are available
WUACLT /ReportNow: Tell the client to report its status back to the WSUS server
WUACLT /UpdateNow : Install updates now
WUACLT /ShowSettingsDialog : Show Windows Update settings dialog
WUACLT /ShowWindowsUpdate: Shows the windows update dialog box or web page
WUACLT /ResetAuthorization : when an update check occurs a cookie is stored that prevents a new update or check for 1 hour. So, you should use this to delete this cookie
WUACLT /ResetEulas : Resets the accepted EULA
WUACLT /SelfUpdateManaged : Scan for windows updates using WSUS
WUACLT / SelfUpdateUnmanaged : Triggers a windows update scan using the windows update website
WUACLT /ShowOptions : Open the windows update settings window
WUACLT /ShowFeaturedOptInDialog : Show Opt-In dialog for featured updates
WUACLT /DemoUI : Show the icons for windows update
WUACLT / ShowFeaturedUpdates : Open windows update dialog and shows the featured updates
Administering Windows Update Via PowerShell
Powershell will give you the most flexibility in installing windows updates. The other methods are fine for simply downloading and installing all updates. However, with the powershell cmdlets you can do things like get a list of updates, search for updates with a specific word in them, then only install those updates. https://gallery.technet.microsoft.com/scriptcenter/2d191bcd-3308-4edd-9de2-88dff796b0bc
Step 1: Install the module from the gallery by running
Step 2: Import the windows update module
Step 3: install the Microsoft Update service.
– Note can also be done via the command
Add-WUServiceManager -ServiceID 7971f918-a847-4430-9279-4a52d1efe18
Step 4: To get a list of the available cmdlets in the PSWindowsUpdate module with the following command:
Get-command -module PSWindowsUpdate
Examples on how to use this tool
1: Download and install updates from Microsoft Update, then reboot:
Get-WUInstall –MicrosoftUpdate –AcceptAll –AutoReboot
2: Check if a reboot is required
3: To view available Updates from Microsoft catalog
Get-WUInstall-MicrosoftUpdate – ListOnly
Administering Windows Update Via USOClient
USO stands for Update Session Orchestrator. The usoclient.exe file or the Windows 10 Update Orchestrator, is located in the System32 folder. This tool was introduced in Windows 10 and Server 2016 and it replaces the deprecated WUACLT tool.
Ensure to run these commands with the Admin rights (elevated command prompt)
usoclient.exe StartScan usoclient.exe StartDownload usoclient.exe StartInstall usoclient.exe RefreshSettings usoclient.exe ResumeUpdate usoclient.exe ScanInstallWait usoclient.exe StartInteractiveScan usoclient.exe RestartDevice
For links to all documentation on WSUS by myself on where some of these commands have been used previously, take a look at the following links.
– WSUS clients appear then disappear in console https://techdirectarchive.com/2018/05/17/wsus-clients-appear-then-disappear-in-console/
– How to Start, Stop and Restart Windows Server Update Services (WSUS) via PowerShell and CMD https://techdirectarchive.com/2020/02/04/how-to-start-stop-and-restart-windows-server-update-services-wsus-via-powershell-and-cmd/
– Windows 2016 Servers does not show up on WSUS console https://techdirectarchive.com/2018/12/13/windows-2016-servers-does-not-show-up-on-wsus-console/
– Applying Updates Deployed by WSUS to Workstations using AWS RunCommand https://techdirectarchive.com/2018/05/17/applying-updates-deployed-by-wsus-to-workstations-using-runcommand/
– Important Areas to Master on WSUS https://techdirectarchive.com/2018/05/17/important-areas-to-master-on-wsus/
– Configuring WSUS Email Notification to Work With Office365 https://techdirectarchive.com/2018/03/10/configuring-wsus-emails-notification-to-work-with-office365/
– Configuring WSUS Email Notification to Work With Office365 – IIS SMTP Relay Server https://techdirectarchive.com/2018/03/10/configuring-wsus-emails-notification-to-work-with-office365-2/
– Configuring SSL between WSUS servers (Upstream and Downstream Servers) https://techdirectarchive.com/2018/03/10/configuring-ssl-between-wsus-servers-upstream-and-downstream-servers/