The code looks ok. You could take out the :PackageLoop label as it is not used anymore. For the missing updates, do they have a value in the registry for the DisplayName? If they don’t then they will never end up in the logfile because you only write data to the file if there is a displayname.

Software inventory is always a pesky thing. I tried several apps and script and none of them showed all installed products, updates, hotfixes, etc...
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.