$(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.
Please sign in to leave a comment.
Comments
2 comments