Guest 03FA5B03-1A4A-4E4C-AE32-5474AD4229FE Posted October 11, 2018 Posted October 11, 2018 None of the command or script approaches for controlling the Windows Update on Server 2016 is updating the date and time of Last checked shown in the GUI. The only time it’s updated is when I press [Check for updates] in the GUI. The value can also be read using this Powershell commands: $windowsUpdateObject = New-Object -ComObject Microsoft.Update.AutoUpdate $windowsUpdateObject.Results.LastSearchSuccessDate I have tried several things, but none is working – see below Does anyone know how to get the update to set the date and time? OR where the value for LastSearchSuccessDate is stored on a Server 2016, as it has changed from Server 2012R2 I have tried Powershell: install-module PSWindowsUpdate import-module PSWindowsUpdate get-wulist Windows Server Core management: sconfig Windows Update command also used in TaskScheduler: usoclient StartScan VBscript: Set objSession = CreateObject("Microsoft.Update.Session") objSession.ClientApplicationID = "TST" Set objSearcher = objSession.CreateUpdateSearcher() Set searchResult = objSearcher.Search("IsInstalled=0 and Type='Software' and IsHidden=0") wscript.echo searchResult.Updates.Count Continue reading... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.