Kaseya Community

Manage Windows updates via Kaseya Policy. Dates not updating in Windows Update GUI.

  • urteam, thanks for this. I think it's going to be a big help!

  • Any ideas why the latest procedure fails to update windows servers updates were installed status? Agent procedure log shows this error:

    Kaseya - Date/time automatic update last occurred:  (converted to UTC: Cannot convert value "" to type "System.DateTime". Error: "String was not recognized as a valid DateTime."

    At line:1 char:1

    + ([datetime]"").ToUniversalTime().ToString("yyyy-MM-dd HH:mm:ss")

    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

       + CategoryInfo          : InvalidArgument: (:) [], RuntimeException

       + FullyQualifiedErrorId : InvalidCastParseTargetInvocationWithFormatProvider

    Workstations are fine.

    [edited by: neuvoja at 9:14 AM (GMT -7) on Sep 22, 2015]
  • I had the same problem - I hadn't run a patch or a patch scan. Once I did, all was working.

  • Yes, that was the problem it seems eventho automatic update had ran last weekend.

  • urteam,

    This is a nice piece of work, I just tried it out and it worked as advertised. Thank you!

    - Karel

  • jimmyc

    It was my understanding that the Kaseya agent leverages the Windows Update Agent to install the approved updates. (https://community.kaseya.com/kb/w/wiki/948.aspx). So why does that date not change? Is there a way in Kaseya to force that date to update as Kaseya pushes Windows updates?

    I think Kaseya only uses the Windows Update Agent to find out what updates are missing not to install them.

  • Something to consider is that these dates relate to the Windows Update Agent and not Kaseya Patch Management by overwriting them you actually lose the information of when the last time Windows Update Agent was used.

    It is a good workaround though, I have had a few customers that do check up on our patching and what they seem to notice is all the missing patches that we denied for various reasons.

    I have figured out how you can hide these patches, I just have not had the time to look into how to script it.

  • I have a similar challenge and have some potential solutions (I have not scripted either).  

  • 's powershell procedure is not working anymore for us. Same error as I had with servers but now it's happening on workstations also even when you just have ran patch scan & automatic update.

    vPatchStatusByAgent.lastPatchScan and vPatchStatusByAgent.lastAutomaticUpdate seem to be blank in the db so that would explain why the conversion to UTC is not working. Any ideas why?

    [edited by: neuvoja at 9:02 AM (GMT -8) on Dec 3, 2015]
  • Well I fixed the procedure by changing the UTC conversion string to (Get-Date).ToString(\"yyyy-MM-dd HH:mm:ss\") so now the timestamp is the time when Automatic update ran on the agent.

    I guess I have to open a support ticket to Kaseya to find out why the vPatchStatusByAgent.lastPatchScan and vPatchStatusByAgent.lastAutomaticUpdate are empty nowadays. Maybe they've changed their name or location?

  • I guess fixed the problem for us, vPatchStatusByAgent.lastPatchScan and vPatchStatusByAgent.lastAutomaticUpdate are being updated correctly now.

  • lastPatchScan - gives us date and time fine

    but lastAutomaticUpdate is blank for us.  Upgrading to 9.2 in 2 weeks so hopefully fixes the issue

  • Anyone here has a option to Update the timestamp on Windows Server 2016 and Windows 10?

  • Yes this is really annoying. I understand from speaking to Kaseya (ticket number 348305) that its no longer possible to edit that field which is controlled by Microsoft. It looks like our end points are not getting updates, which confuses customers and it looks like we are not doing our job!

    See below for comments from Kaseya___________________

    Please note that Kaseya Software Management does not use the Microsoft Catalog to fetch the updates, it has a 3rd Party Catalog from where the patches are shortlisted for download. So it is completely external to the local windows update scan that you perform on the machine or even Kaseya Patch Management.

    Kaseya Patch Management does leverage the local windows update scan functionality on the machines and also fetches its patches from the Microsoft Catalog.

    With regards to your questions below:

    Microsoft is not respecting the reg keys it used to for us to manually set the date of last installed windows update.

    Does Kaseya have some other way that this date can be updated to the date that Kaseya installed updates?

    We will not be able to comment on this as this is external to Kaseya. Perhaps Microsoft Support will be able to provide you the right registry key that is being used.

    You can look at how Kaseya Patch Management leverages the Windows Update agent on the machine in the KB we have published below:


  • If anyone has a workaround let us know!