Jump to content
Microsoft Windows Bulletin Board

How to update the "Last checked" value on Windows Server 2016


Recommended Posts

Guest 03FA5B03-1A4A-4E4C-AE32-5474AD4229FE
Posted

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...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...