Important Notice: On February 29th, this community was put into read-only mode. All existing posts will remain but customers are unable to add new posts or comment on existing. Please feel to join our Community Discord for any questions and discussions.

$(New-Object -ComObject Microsoft.Update.AutoUpdate).Results.LastSearchSuccessDate;

I am using the $(New-Object -ComObject Microsoft.Update.AutoUpdate).Results.LastSearchSuccessDate; to scan for the last successful windows update. The scan returns a date I can use in a dynamic collection.

Yet, the results I get are inconsistent, and the collection included the computer below when "run" today, the 14/10/2021.  



Date Votes
  • Does the troublesome target use different date format settings than the computer that Inventory is running on?

  • It is not just one computer, the dynamic collection just doesn't work. Computers with the same date appear when I reverse the comparison. All computers have date and time set to the UK.