You can use PowerShell for WSUS management. This example works on a Windows Server with Powershell 5.1 and the Powershell WSUS module installed from Server Manager. You can start the synchronization and approve the updates with the example below:
You can use this example if you like to deny older updates:
All updates are denied when they are older then 4 months.
Sometimes it is necessary to accept a license agreement for an update. You can use this code to accept all license agreements:
No comments:
Post a Comment