I'd like to use WMI for querying installed software list from our old Windows 2003 servers.
I have found a KB article(http://support.microsoft.com/kb/974524) instructing not to use the class Win32_Product.
My current "script" is:
Get-Content c:\temp\server_List.txt | Foreach-Object {get-wmiobject -Class Win32Reg_AddRemovePrograms -ComputerName $_ | where {$_.DisplayName -notlike "hotfix" -and $_.DisplayName -notlike "Security Update" -and $_.DisplayName -notlike "*Update for Windows *"} | select DisplayName,Version,Publisher,InstallDate | Export-Csv -Notype "c:\temp\$_-programlist.csv"}
My problem is that since our servers don't have SCCM clients installed on them, I cannot get results using the suggested Win32reg_AddRemovePrograms class.Can you confirm if the Windows Server 2003 family is affected? If so, what other alternative would you suggest to retrieve data about the installed software?
Regards,
András Kovács
p.s.: if the KB article applies to 2k3, it should say so in the corresponding section...