Hi
Actually we are using a propertie “Uninstallable Patches and Updates”. In which we can see the KBs installed in Windows machines.
But wintel team is requesting other format to show the information.
if ((name of it = “Win98” OR name of it = “WinME”) of operating system) then (names of keys whose (exists value “UninstallString” of it AND (value “UninstallString” of it as string contains “RunDll32 advpack.dll,LaunchINFSection”)) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry) else if (name of operating system = “WinNT”) then (names of keys whose (exists value “UninstallString” of it AND (value “UninstallString” of it as string contains “hotfix.exe”)) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of registry) else if ((name of it = “Win2000” OR name of it = “WinXP” OR name of it = “WinXP-2003” OR name of it = “Win2003”) of operating system) then (names of keys whose ((exists value “UninstallString” of it) AND (value “UninstallString” of it as string contains “spuninst.exe”) AND (name of it as string does not contain “Service Pack”)) of key “HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall” of native registry) else if ((name of it = “WinVista” OR name of it = “Win2008” OR name of it = “Win2008R2” OR name of it = “Win7” OR name of it = “Win8” OR name of it = “Win2012” OR name of it = “Win8.1” OR name of it = “Win2012R2”) of operating system) then (if (exists key “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages” of native registry) then elements whose (it contains “KB” AND it does not contain “") of (set of ((substrings before “~” of substrings after "for” of names of keys whose (name of it contains “for_” AND value “Visibility” of it = 1 AND (it = 96 or it = 112 or it = 6 or it = 7) of (value “CurrentState” of it as integer)) of key “HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Component Based Servicing\Packages” of native registry) as uppercase) + set of ((it as string as uppercase) of values “DisplayName” of keys whose (value “DisplayName” of it as string starts with “KB” AND exists value “Uninstallable” of it AND value “Uninstallable” of it = 1) of keys “Patches” of keys of keys “Products” of keys whose (exists key “Products” of it) of key “HKLM\Software\Microsoft\Windows\CurrentVersion\Installer\UserData” of native registry) - set of (“KB936330”;“KB948465”)) else (nothing)) else (“Not Supported”)
The format requeste is show in a line the hostname and the kb isntalled. actually we show in webreport
Client, Hostname, OS and KBs installed ( KBs all in the same box)
Really I don’t know how to add to this properti the possibility to get hostname beside the KB.
Thanks in advance for your help