How to Discover if Windows Update is optional, recommended, or important
I'm currently writing a type of automated program that among other things searches for windows updates. It can search for and retrieve updates just fine, but I am having trouble drilling down for what priority an update is. I would like to have an output similar to: Total Updates: 25 Important: 12 Optional: 13 The .IsMandatory field is only used when the update is specifically for WUA itself, so important updates are not necessary labeled with .IsMandatory. Code snippet for searching the WUA is below: Dim updateSession ' Object to hold our MS Update Session Dim updateSearcher ' Object to