Another idea for you which I'm trying to work out right now. Again for the software inventory.
I'm adding a timestamp to the registry together with the software-name (HKLM/software/Scriptlogic/LastInventory for example).
At this location I'm adding a line for each package with the corresponding inventory date.
Like: Code:
$swcheck=updateregistry('$HKLMss','$SoftwareName','$TimeNow','REG_SZ')



What I like to see is newly installed software, next to the full list.
Could be newly installed servicepacks, or any other software package.

I'm currently having some problems with comparing the two arrays.
- array with software from your script.
- array with all software added to the registry, after a previous run.
And updating/deleting where possible

I'll try to add some code soon, if I get any further with it.