LISTING 1: Code to Report Installed Applications More sms_def.mof file Above Here BEGIN COMMENT LINE Add-Remove Programs Applications Registry Instance Provider Read the registry at this location. END COMMENT LINE [dynamic, provider("RegProv"), ClassContext("local|HKEY_LOCAL_MACHINE _ \\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall") ] class AddRemovePrograms BEGIN COMMENT LINE Read the specific registry key string values. END COMMENT LINE { [key] string ProdID; [PropertyContext("DisplayName")] string DisplayName; [PropertyContext("Publisher")] string Publisher; [PropertyContext("DisplayVersion")] string Version; }; #pragma namespace("\\\\.\\root\\cimv2\\sms") [SMS_Report(TRUE), SMS_Group_Name("AddRemovePrograms"), SMS_Class_ID("MICROSOFT|ADDREMPROGS|1.0")] BEGIN COMMENT LINE Report this information to the SMS database, make available for queries END COMMENT LINE class AddRemovePrograms : SMS_Class_Template { [SMS_Report(TRUE),key] string ProdID; [SMS_Report(TRUE)] string DisplayName; [SMS_Report(TRUE)] string Publisher; [SMS_Report(TRUE)] string Version; }; BEGIN COMMENT LINE End of Add-Remove Programs Applications Registry Instance Provider END COMMENT LINE More sms_def.mof file Below Here