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

0

Comments

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

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

    0

Please sign in to leave a comment.

Didn't find what you were looking for?

New post