i want to get Reports from WSUS by Powershell.
I want to get following Information:
But only for these updates, which are not complete.
I have following script:
This script is giving me the Updates of the last 3 months wird CreationDate and export them to a .csv.
But i don't get the other parameter in the script.
Had anyone an idea?
Your Where-Object command is only filtering for 3 months back; you would need to add an additional condition if you only wanted incomplete updates.
You might look at https://msdn.microsoft.com/en-us/library/ms747095(v=vs.85).aspx Instead of the GetUpdates() with no arguments. It's a more granular way of querying updates and will probably run faster.
I'm having some trouble with the docs, but it looks like an Update object should have an UpdateState property, which you could filter on?
... -and $_.UpdateState -eq XXX ...
You just need to figure out if that's the actual property name and what the valid values are.
You must be logged in to reply to this topic.