Jeff Gilbert's Web blog at myITforum.com

This posting is provided "AS IS" with no warranties, and confers no rights :-)
How To Inventory Remote Assistance Requests and Connections with SMS 2003/Configuration Manager 2007 Hardware Inventory

I guess Sherry Kissinger (SMS Expert's MOF Master extraordinaire) and I are playing tag with these Remote Assistance edits! Sherry did an excellent job documenting how to inventory specific remote assistance events in her blog entry: MOF edit - Remote Assistance Requests Accepted, which was based loosely on my WQL Query edit using the View Provider example. This seems to be a hot topic lately as someone else also contacted me about the MOF edit who wanted to inventory other Remote Assistance events so I figured I'd share my results here to help out anyone else looking for this information. These edits are all based on performing simple WQL queries using the WMI View Provider.

The trick here was that there are limits to the number of WQL keywords that can be used in WQL queries using the View Provider (large numbers of WQL keywords used in a complex query can cause WMI to return the WBEM_E_QUOTA_VIOLATION error code as an HRESULT value. The limit of WQL keywords depends on how complex the query is). So I couldn't add in a bunch of OR's in there for the various events generated by Remote Assistance processes. To get around this, I just queried for all events generated by Remote Assistance (SourceName = RemoteAssistance). This was great until I discovered that the actual Remote Assistance connections do not show up in the event log with Remote Assistance as the source! Turns out, the actual connections are generated by a .dll (I think) called safrslv so I had to create a separate class for connections. Don't ask me what safrslv is or why this is different, I just take what the MOF gives me and try to make it work.

Couple of event log examples here:
On the system being remoted into:
(Remote Assistance source events):
Event 5261 :  User <user> has accepted a Solicited Remote Assistance session from <IP>
Event 5262 : A Solicited Remote Assistance session for user <user> from <IP> ended.
Event 5270 : A remote assistance ticket has been created with duration: <time> for user <user>
(safrslv source events):
Event  4 : Remote assistance of <user> ended.
Event  5 : Remote assistance of <user> started

On the system that did the remoting:
Event 5023 : Expert (local user: <user>) has opened the following ticket: <ticket GUID> to the remote computer on port 3389

On to the MOF edits finally:
These edits work with SMS 2003 as well as Configuration Manager 2007 and I've actually modified the edits to account for SMS 2003 in this posting (the #pragma namespace change lines aren't needed for Configuration Manager 2007 as the data classes are in a totally separate file (Configuration.mof) from the reporting classes (SMS_def.mof)). In case you want to download the actual MOF edit (in .txt format because I can't upload MOF files!) then right-click and select Save Target As... HERE.

//Remote Assistance Requests Data Class
#pragma namespace("\\\\.\\root\\cimv2")

[Union,
ViewSources{"Select * FROM Win32_NTLogEvent WHERE LogFile='Application' AND SourceName='Remote Assistance'"},
ViewSpaces{\\\\.\\root\\cimv2},
Dynamic, Provider("MS_VIEW_INSTANCE_PROVIDER")]

Class RARequests
{
     [PropertySources("LogFile"), Key] string LogFile;
     [PropertySources("EventCode")] UINT16 EventCode;
     [PropertySources("RecordNumber"), Key] UINT32 Recordnumber;
     [PropertySources("Message")] String Message;
     [PropertySources("TimeGenerated")] DateTime TimeGenerated;
};

//Remote Assistance Requests Reporting Class
#pragma namespace(\\\\.\\root\\cimv2\\sms)

[SMS_Report(TRUE),
SMS_Group_Name("Remote Assistance Requests"),
SMS_Class_ID("MICROSOFT|RARequests|1.0")]

Class RARequests: SMS_Class_Template
{
     [SMS_Report(TRUE), Key] String LogFile;
     [SMS_Report(TRUE), SMS_Units("DecimalString")] UINT16 EventCode;
     [SMS_Report(TRUE), Key, SMS_Units("DecimalString")] UINT32 RecordNumber;
     [SMS_Report(True)] String Message;
     [SMS_Report(True)] DateTime TimeGenerated;
};

Resource Explorer Screen Shot:
Which gives you the resulting view in Resource Explorer (after hardware inventory has run on a system with these events anyway Smile):
Resource Explorer view: Remote Assistance requests


//Remote Assistance Connections Data Class
#pragma namespace(\\\\.\\root\\cimv2)

[Union,
ViewSources{"Select * FROM Win32_NTLogEvent WHERE LogFile='Application' AND SourceName='safrslv'"},
ViewSpaces{\\\\.\\root\\cimv2},
Dynamic, Provider("MS_VIEW_INSTANCE_PROVIDER")]

Class RAConnections
{
     [PropertySources("LogFile"), Key] string LogFile;
     [PropertySources("EventCode")] UINT16 EventCode;
     [PropertySources("RecordNumber"), Key] UINT32 Recordnumber;
     [PropertySources("Message")] String Message;
     [PropertySources("TimeGenerated")] DateTime TimeGenerated;
};

//Remote Assistance Connections Reporting Class
#pragma namespace(\\\\.\\root\\cimv2\\sms)

[SMS_Report(TRUE),
SMS_Group_Name("Remote Assistance Connections"),
SMS_Class_ID("MICROSOFT|RAConnections|1.0")]

Class RAConnections: SMS_Class_Template
{
     [SMS_Report(TRUE), Key] String LogFile;
     [SMS_Report(TRUE), SMS_Units("DecimalString")] UINT16 EventCode;
     [SMS_Report(TRUE), Key, SMS_Units("DecimalString")] UINT32 RecordNumber;
     [SMS_Report(True)] String Message;
     [SMS_Report(True)] DateTime TimeGenerated;
};

Resource Explorer Screen Shot:
Which gives you the resulting view in Resource Explorer (after hardware inventory has run on a system with these events anyway Smile):
Resource Explorer view: Remote Assistance connections

Published Wednesday, August 08, 2007 7:49 PM by jgilbert

Comments

# re: How To Inventory Remote Assistance Requests and Connections with SMS 2003/Configuration Manager 2007 Hardware Inventory@ Thursday, August 09, 2007 10:04 AM

Wow!  I'm going to go edit my blog entry, and if anyone hits that instead of this--point them over here!  

skissinger

# MOF edit - Remote Assistance Requests Accepted - Sherry Kissinger at myITforum.com@ Thursday, August 09, 2007 10:10 AM

Pingback from  MOF edit - Remote Assistance Requests Accepted - Sherry Kissinger at myITforum.com

MOF edit - Remote Assistance Requests Accepted - Sherry Kissinger at myITforum.com

# re: How To Inventory Remote Assistance Requests and Connections with SMS 2003/Configuration Manager 2007 Hardware Inventory@ Tuesday, January 20, 2009 8:01 PM

Hello,

I tried to add the mof file attached to the configuration.mof file on my system but it is giving me trouble.

The file is:

[q]

//====================================================================================================================================

//

// Configuration.mof - WMI configuration that will be compiled on

//    SMS clients.

//

// Copyright (c) Microsoft Corporation, All Rights Reserved

// Updated by : Dominique DUCHEMIN - 01/20/2009 - Addition of classes to collect information for remote Assistance

//

//====================================================================================================================================

//====================================================================================================================================

// Define registry classes for inventory reporting

//

// - Registry key/value class definition should be done in cimv2,

// - SMS class definition should be done in cimv2\\sms

//====================================================================================================================================

//----------------------

// Add Remove Programs

//----------------------

#pragma namespace ("\\\\.\\root\\cimv2")

[ dynamic,

 provider("RegProv"),

 ClassContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall")

]

class Win32Reg_AddRemovePrograms

{

   [key]

       string    ProdID;

   [PropertyContext("DisplayName")]

       string    DisplayName;

   [PropertyContext("InstallDate")]

       string    InstallDate;

   [PropertyContext("Publisher")  ]

       string    Publisher;

   [PropertyContext("DisplayVersion")]

       string    Version;

};

[ dynamic,

 provider("RegProv"),

 ClassContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall")

]

class Win32Reg_AddRemovePrograms64

{

   [key]

       string    ProdID;

   [PropertyContext("DisplayName")]

       string    DisplayName;

   [PropertyContext("InstallDate")]

       string    InstallDate;

   [PropertyContext("Publisher")  ]

       string    Publisher;

   [PropertyContext("DisplayVersion")]

       string    Version;

};

//----------------------

// Virtual PC

//----------------------

#pragma namespace ("\\\\.\\root\\cimv2")

[DYNPROPS]

class Win32Reg_SMSGuestVirtualMachine

{

   [key]

       string InstanceKey;

       string PhysicalHostName;

       string PhysicalHostNameFullyQualified;

};

[DYNPROPS]

instance of Win32Reg_SMSGuestVirtualMachine

{

   InstanceKey = "VPCKey";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostName"),

                   Dynamic, Provider("RegPropProv")]

       PhysicalHostName;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostNameFullyQualified"),

                   Dynamic, Provider("RegPropProv")]

       PhysicalHostNameFullyQualified;

};

[DYNPROPS]

class Win32Reg_SMSGuestVirtualMachine64

{

   [key]

       string InstanceKey;

       string PhysicalHostName;

       string PhysicalHostNameFullyQualified;

};

[DYNPROPS]

instance of Win32Reg_SMSGuestVirtualMachine64

{

   InstanceKey = "VPCKey";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostName"),

                   Dynamic, Provider("RegPropProv")]

       PhysicalHostName;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostNameFullyQualified"),

                   Dynamic, Provider("RegPropProv")]

       PhysicalHostNameFullyQualified;

};

//----------------------

// Advanced Client Ports

//----------------------

#pragma namespace ("\\\\.\\root\\cimv2")

#pragma deleteclass("Win32Reg_SMSAdvancedClientPorts", NOFAIL)

[DYNPROPS]

class Win32Reg_SMSAdvancedClientPorts

{

   [key]

       string InstanceKey;

       uint32 PortName;

       uint32 HttpsPortName;

};

[DYNPROPS]

instance of Win32Reg_SMSAdvancedClientPorts

{

   InstanceKey = "SMSPortKey";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM|HttpPort"),

                   Dynamic, Provider("RegPropProv")]

       PortName;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM|HttpsPort"),

                   Dynamic, Provider("RegPropProv")]

       HttpsPortName;

};

//--------------------------------------------

// Advanced Client SSL Security COnfigurations

//--------------------------------------------

#pragma namespace ("\\\\.\\root\\cimv2")

#pragma deleteclass("Win32Reg_SMSAdvancedClientSSLConfiguration", NOFAIL)

[DYNPROPS]

class Win32Reg_SMSAdvancedClientSSLConfiguration

{

   [key]

       string InstanceKey;

       uint32 HttpsStateFlags;

       string CertificateStore;

       string CertificateSelectionCriteria;

       string InternetMPHostName;

       uint32 SelectFirstCertificate;

       uint32 ClientAlwaysOnInternet;

};

[DYNPROPS]

instance of Win32Reg_SMSAdvancedClientSSLConfiguration

{

   InstanceKey = "SMSSSLConfiguration";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM|HttpsState"),

       Dynamic, Provider("RegPropProv")]

   HttpsStateFlags;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|Certificate Store"),

       Dynamic, Provider("RegPropProv")]

   CertificateStore;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|Certificate Selection Criteria"),

       Dynamic, Provider("RegPropProv")]

   CertificateSelectionCriteria;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Internet Facing|Internet MP Hostname"),

       Dynamic, Provider("RegPropProv")]

   InternetMPHostName;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|Select First Certificate"),

       Dynamic, Provider("RegPropProv")]

   SelectFirstCertificate;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|ClientAlwaysOnInternet"),

       Dynamic, Provider("RegPropProv")]

   ClientAlwaysOnInternet;

};

#pragma namespace ("\\\\.\\root\\cimv2")

// Declare the class for client component registry properties

[DYNPROPS]

class Win32Reg_SMSClientState

{

   [key]

       string  Component = "";

       string State;

       string Version;

       string PendingVersion;

       string PendingTime;

};

// Declare the instances, one for each client component

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="SMS Client Base Components";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\SMS Client Base Components\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\SMS Client Base Components\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\SMS Client Base Components\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\SMS Client Base Components\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Available Programs Manager Win32";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Available Programs Manager Win32\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Available Programs Manager Win32\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Available Programs Manager Win32\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Available Programs Manager Win32\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Windows Management";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Windows Management\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\WBEM|Build"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Windows Management\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Windows Management\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Software Distribution";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Distribution\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Distribution\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Distribution\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Distribution\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Software Inventory Agent";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Inventory Agent\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Inventory Agent\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Inventory Agent\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Inventory Agent\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Hardware Inventory Agent";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Hardware Inventory Agent\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Hardware Inventory Agent\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Hardware Inventory Agent\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Hardware Inventory Agent\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Remote Control";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Remote Control\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Remote Control\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Remote Control\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Remote Control\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="NT Event To SNMP Trap Translator";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\NT Event To SNMP Trap Translator\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\NT Event To SNMP Trap Translator\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\NT Event To SNMP Trap Translator\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\NT Event To SNMP Trap Translator\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Software Metering Agent";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Metering Agent\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Metering Agent\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Metering Agent\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Metering Agent\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

// Declare the class to prevent older clients from sending error status messages

#pragma namespace("\\\\.\\root")

instance of __Namespace

{

Name = "ccm" ;

};

#pragma namespace("\\\\.\\root\\ccm")

instance of __Namespace

{

Name = "SoftwareMeteringAgent" ;

};

#pragma namespace("\\\\.\\root\\ccm\\SoftwareMeteringAgent")

class CCM_RecentlyUsedApps

{

  [Key]

  string FolderPath;

  [Key]

  string ExplorerFileName;

  [Key]

  string LastUserName;

  string OriginalFileName;

  string FileVersion;

  uint32 FileSize;

  string ProductName;

  string ProductVersion;

  string CompanyName;

  uint32 ProductLanguage;

  string FileDescription;

  uint32 LaunchCount;

  datetime LastUsedTime;

  string ProductCode;

  string AdditionalProductCodes;

  string msiDisplayName;

  string msiPublisher;

  string msiVersion;

  string SoftwarePropertiesHash;

  string FilePropertiesHash;

};

#pragma namespace("\\\\.\\root")

instance of __Namespace

{

Name = "ccm" ;

};

#pragma namespace("\\\\.\\root\\ccm")

// CAL tracking server side configurations and policy

[Singleton]

class CCM_CALTrackConfig

{

   uint32   CALCollectionType;

   uint32   CALCollectionFrequencyDays;

   uint32   CALCollectionFrequencyMinutes;

   uint32   CALCollectionTimeWindow;

   string   CALCollectionSupportedWindowsVersions;

};

instance of CCM_CALTrackConfig

{

   CALCollectionType = 0; //0-Disabled, 1-User CAL, 2-Device CAL, 3-All

   CALCollectionFrequencyDays = 7;

   CALCollectionFrequencyMinutes = 60;

   CALCollectionTimeWindow = 90;

   CALCollectionSupportedWindowsVersions = "5.0,5.2,6.0";

};

//------------------------------------------------------------------------------

// Class: SMS_InstalledSoftware

// Declare here to prevent pre-SP1 AI enabled clients from stumbling on newly

// added properties, e.g., EvidenceSource

//------------------------------------------------------------------------------

#pragma namespace ("\\\\.\\root\\cimv2\\sms")

[ dynamic, provider("AAInstProv")]

class SMS_InstalledSoftware

{

       [key]  

       string     SoftwareCode;

       uint32     InstallType;

       string     ProductCode;

       string     CM_DSLID;

       string     ProductName;

       string     ARPDisplayName;

       string     ProductVersion;

       string     Publisher;

       uint32     VersionMajor;

       uint32     VersionMinor;

       string     ServicePack;

       uint32     Language;

       string     ProductID;

       string     InstalledLocation;

       string     InstallSource;

       string     UninstallString;

       string     LocalPackage;

       string     UpgradeCode;

       datetime   InstallDate;

       string     RegisteredUser;

       string     SoftwarePropertiesHash;

       string     SoftwarePropertiesHashEx;

       uint32     InstallDirectoryValidation;

       string     ChannelCode;

       string     EvidenceSource;

};

//--------------------------------------------

// CCM_LogicalMemoryConfiguration

//--------------------------------------------

#pragma namespace("\\\\.\\root\\cimv2")

[Union,ViewSources{"select Name,FreeVirtualMemory,SizeStoredInPagingFiles,TotalVisibleMemorySize,TotalVirtualMemorySize from Win32_OperatingSystem"},ViewSpaces{"\\\\.\\root\\cimv2"},

dynamic,Provider("MS_VIEW_INSTANCE_PROVIDER")]

class CCM_LogicalMemoryConfiguration

{

   [PropertySources{"FreeVirtualMemory"}]

   uint64          AvailableVirtualMemory;

   [PropertySources{"Name"},key]

   string          Name;

   [PropertySources{"SizeStoredInPagingFiles"}]

   uint64          TotalPageFileSpace;

   [PropertySources{"TotalVisibleMemorySize"}]

   uint64          TotalPhysicalMemory;

   [PropertySources{"TotalVirtualMemorySize"}]

   uint64          TotalVirtualMemory;

};

#pragma namespace ("\\\\.\\root\\cimv2")

//========================

// Added extensions start

//========================

//Remote Assistance Requests Data Class

#pragma namespace("\\\\.\\root\\cimv2")

[Union,

ViewSources{"Select * FROM Win32_NTLogEvent WHERE LogFile='Application' AND SourceName='Remote Assistance'"},

ViewSpaces{"\\\\.\\root\\cimv2"},

dynamic,provider("MS_VIEW_INSTANCE_PROVIDER")]

Class RARequests

{

[PropertySources("LogFile"), Key] string LogFile;

[PropertySources("EventCode")] UINT16 EventCode;

[PropertySources("RecordNumber"), Key] UINT32 Recordnumber;

[PropertySources("Message")] String Message;

[PropertySources("TimeGenerated")] DateTime TimeGenerated;

};

//Remote Assistance Requests Reporting Class

#pragma namespace("\\\\.\\root\\cimv2\\sms")

[SMS_Report(TRUE),

SMS_Group_Name("Remote Assistance Requests"),

SMS_Class_ID("MICROSOFT|RARequests|1.0")]

Class RARequests: SMS_Class_Template

{

[SMS_Report(TRUE), Key] String LogFile;

[SMS_Report(TRUE), SMS_Units("DecimalString")] UINT16 EventCode;

[SMS_Report(TRUE), Key, SMS_Units("DecimalString")] UINT32 RecordNumber;

[SMS_Report(True)] String Message;

[SMS_Report(True)] DateTime TimeGenerated;

};

//Remote Assistance Connections Data Class

#pragma namespace("\\\\.\\root\\cimv2")

[Union,

ViewSources{"Select * FROM Win32_NTLogEvent WHERE LogFile='Application' AND SourceName='safrslv'"},

ViewSpaces{"\\\\.\\root\\cimv2"},

dynamic,provider("MS_VIEW_INSTANCE_PROVIDER")]

Class RAConnections

{

[PropertySources("LogFile"), Key] string LogFile;

[PropertySources("EventCode")] UINT16 EventCode;

[PropertySources("RecordNumber"), Key] UINT32 Recordnumber;

[PropertySources("Message")] String Message;

[PropertySources("TimeGenerated")] DateTime TimeGenerated;

};

//Remote Assistance Connections Reporting Class

#pragma namespace("\\\\.\\root\\cimv2\\sms")

[SMS_Report(TRUE),

SMS_Group_Name("Remote Assistance Connections"),

SMS_Class_ID("MICROSOFT|RAConnections|1.0")]

Class RAConnections: SMS_Class_Template

{

[SMS_Report(TRUE), Key] String LogFile;

[SMS_Report(TRUE), SMS_Units("DecimalString")] UINT16 EventCode;

[SMS_Report(TRUE), Key, SMS_Units("DecimalString")] UINT32 RecordNumber;

[SMS_Report(True)] String Message;

[SMS_Report(True)] DateTime TimeGenerated;

};

//========================

// Added extensions end

//========================

[/q]

and I am getting two Red line when checking the bad file:

[q]

Properties = "ConfigManagerErrorCode, DeviceID, ErrorDescription, LastErrorCode,

Name, PNPDeviceID";

[/q]

and

[q]

// Declare the class to prevent older clients from sending error status messages

[/q]

with trace.exe the configuration.mof file...

[q]

instance of CCM_Scheduler_ScheduledMessage

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{374d7b46-af1c-47fb-a3ca-faba5b07ce32}";

ScheduledMessageID = "{00000000-0000-0000-0000-000000000001}";

TargetEndpoint = "direct:InventoryAgent";

ReplyToEndpoint = "mp:MP_HinvEndpoint";

Triggers =

{

"SMSSchedule;ScheduleString=719319C000100100"

};

TriggerMessage = ""

"<?xml version='1.0' ?>"

"<InventoryMessage MessageType='InventoryAction'>"

"  <InventoryAction ActionType='Predefined'>"

"    <InventoryActionID>{00000000-0000-0000-0000-000000000001}</InventoryActionID>"

"    <DefaultTimeout>4838400</DefaultTimeout>"

"    <Description>Hardware</Description>"

"    <ReportType>Delta</ReportType>"

"    <ReportDestination>mp:MP_HinvEndpoint</ReportDestination>"

"  </InventoryAction>"

"</InventoryMessage>";

};

instance of CCM_ClientActions

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{c5564742-ef61-48e4-9505-28987500c6e6}";

ActionID = "{00000000-0000-0000-0000-000000000101}";

Name = "Hardware Inventory Collection Cycle";

DisplayNameResID = 10001;

DisplayNameResFilename = "cfg_res.dll";

Endpoint = "direct:InventoryAgent";

Message = ""

"<?xml version='1.0' ?>"

"<InventoryMessage MessageType='InventoryAction'>"

"  <InventoryAction ActionType='Predefined'>"

"    <InventoryActionID>{00000000-0000-0000-0000-000000000001}</InventoryActionID>"

"    <DefaultTimeout>4838400</DefaultTimeout>"

"    <Description>Hardware</Description>"

"    <ReportType>Delta</ReportType>"

"    <ReportDestination>mp:MP_HinvEndpoint</ReportDestination>"

"  </InventoryAction>"

"</InventoryMessage>";

};

instance of InventoryAction

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{6311c748-c4e6-4c16-9e2c-c5e31533fb72}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

DefaultTimeout = 600000;

ReportTimeout = 4838400;

Description = "Hardware";

ReportType = "Delta";

ReportDestination = "mp:MP_HinvEndpoint";

InventoryActionLastUpdateTime = "20090120162313.000000+000";

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{ca297b30-993f-40a6-8065-d02b9787045f}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "CCM_System";

DataItemID = "{00000000-0000-0000-0001-000000000009}";

Namespace = "\\\\.\\root\\ccm\\invagt";

Properties = "Name, SMSID, Domain, SystemRole, SystemType, LocalDateTime";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{ee21deac-a102-44ea-9c00-7bd7d44f8be6}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "CCM_RecentlyUsedApps";

DataItemID = "{034216b8-ff24-4792-8a9c-9c1767f1eed6}";

Namespace = "\\\\.\\root\\ccm\\SoftwareMeteringAgent";

Properties = "AdditionalProductCodes, CompanyName, ExplorerFileName, FileDescription, FilePropertiesHash, FileSize, FileVersion, FolderPath, LastUsedTime, LastUserName, msiDisplayName, msiPublisher, msiVersion, OriginalFileName, ProductCode, ProductLanguage, ProductName, ProductVersion, SoftwarePropertiesHash";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{8152953b-04b7-448e-9612-b9231eef66eb}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32Reg_AddRemovePrograms";

DataItemID = "{0ce40c52-64c8-4c45-b580-4aecd136c711}";

Namespace = "\\\\localhost\\root\\cimv2";

Properties = "DisplayName, InstallDate, ProdID, Publisher, Version";

Timeout = 600000;

Context = {

instance of InventoryDataContext

{

Name = "__ProviderArchitecture";

Type = "3";

Value = {"32"};

},

instance of InventoryDataContext

{

Name = "__RequiredArchitecture";

Type = "11";

Value = {"true"};

}};

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{2209c0b6-5ccc-4f3f-beb3-02c7e731bf00}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_NetworkClient";

DataItemID = "{13170aad-63f8-4371-a505-b23bbe6c6687}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Description, Manufacturer, Name, Status";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{585032d7-39a3-4a9d-b34c-3406b85358d6}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "SMS_ActiveSyncService";

DataItemID = "{136e419f-4ab3-41da-8dee-8f92318238ef}";

Namespace = "root\\SmsDm";

Properties = "LastSyncTime, MajorVersion, MinorVersion";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{16bd2806-0698-4371-99ce-b0add293f980}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_ComputerSystem";

DataItemID = "{138b7d7d-8b62-43a0-b99f-00e8a209d12a}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "CurrentTimeZone, Description, Domain, DomainRole, Manufacturer, Model, Name, NumberOfProcessors, Roles, Status, SystemType, UserName";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{bf470d00-4441-420b-8998-5be381a0fe3b}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_PatchState";

DataItemID = "{15f08089-a827-44a5-be2f-bd0fd3f33a11}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "AuthorizationName, BinPath, DatePosted, DateRevised, ID, InfoPath, Language, LocaleID, Product, QNumbers, RebootType, ScanAgent, Severity, Status, Summary, TimeApplied, TimeAuthorized, TimeDetected, Title, Type, UnattendSyntax";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{c3d93fe0-2f92-4666-9fa6-9ab96daa1302}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "SMS_Processor";

DataItemID = "{226f8590-3f67-4a60-9442-c5a7a2bf00f5}";

Namespace = "\\\\.\\root\\cimv2\\sms";

Properties = "AddressWidth, BrandID, CPUHash, CPUKey, DataWidth, DeviceID, Family, Is64Bit, IsMobile, IsMulticore, Manufacturer, MaxClockSpeed, Name, NormSpeed, PCache, ProcessorId, ProcessorType, Revision, SocketDesignation, Status, SystemName, Version";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{6a58bae9-5048-492b-a655-f2255e38983a}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_Service";

DataItemID = "{22e689b9-ff74-4c4e-8554-39952b94bd9d}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "DisplayName, Name, PathName, ServiceType, StartMode, StartName, Status";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{f2e5c324-f283-4763-85bc-e91a3c43961d}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_SoundDevice";

DataItemID = "{26606eca-3f33-4cb4-9e9e-cf44c4a04998}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Availability, Description, DeviceID, InstallDate, Manufacturer, Name, PNPDeviceID, ProductName, Status";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{46eb7773-00cd-4adc-8582-7e56a240323f}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_NetworkAdapter";

DataItemID = "{2dc40dfb-ef47-495f-8be6-572b2cbf6caa}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "AdapterType, Description, DeviceID, MACAddress, Manufacturer, Name, ProductName, ServiceName, Status";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{bc8901a2-510a-49dc-bed6-47b4eaee10c0}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_ParallelPort";

DataItemID = "{2e917391-a332-4975-8879-2c12df06cb53}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Availability, Capabilities, DeviceID, Name, Status";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{cf475d5b-5e07-4863-9b21-f1a69c9eb426}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "VirtualMachine";

DataItemID = "{3ac6fc61-eb32-43b1-aff7-39c1b773ac12}";

Namespace = "\\\\localhost\\root\\vm\\VirtualServer";

Properties = "Name";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{403a5f96-4c7a-4c33-8514-96b41737612f}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32Reg_SMSGuestVirtualMachine";

DataItemID = "{3e792cc7-f199-4fc9-a5ae-fca1e0fd96af}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "InstanceKey, PhysicalHostName, PhysicalHostNameFullyQualified";

Timeout = 600000;

Context = {

instance of InventoryDataContext

{

Name = "__ProviderArchitecture";

Type = "3";

Value = {"32"};

},

instance of InventoryDataContext

{

Name = "__RequiredArchitecture";

Type = "11";

Value = {"true"};

}};

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{c345285e-d075-4a0a-826c-8d7117629e08}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_NetworkAdapterConfiguration";

DataItemID = "{3f80da9a-fd77-40fb-a6b2-b1f2a0806ecc}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "DefaultIPGateway, DHCPEnabled, DHCPServer, DNSDomain, DNSHostName, Index, IPAddress, IPEnabled, IPSubnet, MACAddress, ServiceName";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{1a4607ad-38c8-4800-88f6-b2f444fad26e}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_POTSModem";

DataItemID = "{47e7bd4f-88ac-420a-bf25-054e83bc0f0a}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "AnswerMode, DeviceID, DeviceType, Index, MaxBaudRateToPhone, MaxBaudRateToSerialPort, Model, Name, Properties, Status, StringFormat, SystemName, VoiceSwitchFeature";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{593e4e9f-5395-48df-9956-14a2c208fe42}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_Vulnerability";

DataItemID = "{49059cae-1eb9-40ac-9842-08cb5abfccc3}";

Namespace = "\\\\.\\root\\ccm\\VulnerabilityAssessment";

Properties = "Tool, VulnerabilityID, VulnerabilityScore";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{7a0b533c-56fc-495e-84c9-bb8579b6bbfc}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "SMS_ActiveSyncConnectedDevice";

DataItemID = "{4f74b8e4-9faa-4c0e-a06b-4902a0a21836}";

Namespace = "root\\SmsDm";

Properties = "DeviceOEMInfo, DeviceType, InstalledClientID, InstalledClientServer, InstalledClientVersion, LastSyncTime, OS_AdditionalInfo, OS_Build, OS_Major, OS_Minor, OS_Platform, ProcessorArchitecture, ProcessorLevel, ProcessorRevision";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{47f2570e-61bc-4d25-9023-c596fb0c9c0a}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_SCSIController";

DataItemID = "{55b6beff-e8cb-42ed-bac4-bd32b24edfc4}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Availability, Description, DeviceID, DriverName, HardwareVersion, Index, Manufacturer, Name, Status";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{38135c5d-997e-4835-b471-ead407be4cc2}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32Reg_SMSGuestVirtualMachine64";

DataItemID = "{55cf7604-0c6b-4d3b-8be4-5e26f8d27fbc}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "InstanceKey, PhysicalHostName, PhysicalHostNameFullyQualified";

Timeout = 600000;

Context = {

instance of InventoryDataContext

{

Name = "__ProviderArchitecture";

Type = "3";

Value = {"64"};

},

instance of InventoryDataContext

{

Name = "__RequiredArchitecture";

Type = "11";

Value = {"true"};

}};

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{363d456a-e0b1-4549-8b9c-279466e1a6ea}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_ServerComponent";

DataItemID = "{5b6aa4c0-e0f7-40b0-9120-9331bff3e2f9}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "ID, Name, ParentID";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{7bd06dd2-252a-4540-977e-5bc29a64319c}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_TSLicenseKeyPack";

DataItemID = "{5f2ab23e-4b0b-43aa-a0b1-68f85d8fc8a6}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "AvailableLicenses, Description, IssuedLicenses, KeyPackId, KeyPackType, ProductType, ProductVersion, TotalLicenses";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{59bcde45-2862-46e9-8bd3-7f3b5f0baf81}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "SMS_LogicalDisk";

DataItemID = "{637333eb-b7fa-4c46-8a7b-ce557e45fd6c}";

Namespace = "\\\\.\\root\\cimv2\\sms";

Properties = "Availability, Compressed, Description, DeviceID, DriveType, FileSystem, FreeSpace, Name, Size, SystemName, VolumeName, VolumeSerialNumber";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{cd22bba2-0fd8-4cb3-9bfa-1378d8c1fc6b}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_ScanPackageVersion";

DataItemID = "{687e8cf4-c264-4160-b6e4-1a46ef86f540}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "LastUpdateTime, PackageID, PackageVer, Type";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{bc25efa5-43dc-48d2-9229-b6ee373dd1d4}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_BIOS";

DataItemID = "{743ec33a-3dfe-484d-95c1-a1191adb61af}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "BuildNumber, Description, Manufacturer, Name, ReleaseDate, SerialNumber, SMBIOSBIOSVersion, SoftwareElementID, SoftwareElementState, TargetOperatingSystem, Version";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{f901e1cf-4d18-4e88-be08-1de20dc19973}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_WindowsUpdateAgentVersion";

DataItemID = "{8184250d-550b-4cc7-9fe9-dff1df43ebeb}";

Namespace = "\\\\.\\root\\cimv2\\sms";

Properties = "Version";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{4d9e6c71-fc1a-458b-9edf-3957eeb87865}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_IDEController";

DataItemID = "{84193b1c-250a-4e51-ae77-c1c74096f1ba}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Availability, Description, DeviceID, Manufacturer, Name, Status";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{e643aaa1-b541-4797-b7d5-ad3b8c5742ff}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Package";

DataItemID = "{88be12d7-e6be-4487-ad1c-c9e42f03e42b}";

Namespace = "\\\\localhost\\root\\Microsoft\\appvirt\\client";

Properties = "CachedLaunchSize, CachedPercentage, CachedSize, LaunchSize, Name, PackageGUID, TotalSize, Version, VersionGUID";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{56c889a8-a5c8-4835-9032-b2d52e52492a}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_TSIssuedLicense";

DataItemID = "{8b85d0c6-a0f7-4eeb-9489-2fb21705946d}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "ExpirationDate, IssueDate, KeyPackId, LicenseId, LicenseStatus, sHardwareId, sIssuedToComputer, sIssuedToUser";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{6ed0d5e0-f7b4-42ad-b7d9-5f287539f09f}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_SystemEnclosure";

DataItemID = "{9425523e-a8d5-4d2a-84ef-5d62c54d7d89}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "ChassisTypes, Manufacturer, Model, SerialNumber, SMBIOSAssetTag, Tag";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{0d1ca4d2-542c-457e-8cc7-d8486f440ed7}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "NAP_Client";

DataItemID = "{9654a46d-42dc-4c33-b777-f71c7f60cb55}";

Namespace = "\\\\.\\root\\Nap";

Properties = "description, fixupURL, name, napEnabled, napProtocolVersion, systemIsolationState";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{c9da8223-2a55-4ca8-9447-02c361fa8f93}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_DesktopMonitor";

DataItemID = "{9a0270d2-ae1b-483a-b8b2-97a6e524b109}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Description, DeviceID, DisplayType, MonitorManufacturer, MonitorType, Name, PixelsPerXLogicalInch, PixelsPerYLogicalInch, ScreenHeight, ScreenWidth";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{2d39076b-9c8f-4458-ac09-e0d8316c4c43}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_TapeDrive";

DataItemID = "{9f6d4021-6044-4347-aeb1-ecd4c3606654}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Availability, Description, DeviceID, MediaType, Name, Status";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{95719fd9-981e-46ef-b680-37ad4fef7168}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "CCM_SystemDevices";

DataItemID = "{a03a70ca-d1ae-4700-89a4-d5aa22fae5c2}";

Namespace = "\\\\.\\root\\cimv2\\sms";

Properties = "CompatibleIDs, DeviceID, HardwareIDs, IsPnP, Name";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{2d788baf-9e8d-4edd-b47e-54c9ebe80d80}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_MotherboardDevice";

DataItemID = "{a1e0f0ef-fc38-4c99-9dd0-565f13d11a0b}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Description, DeviceID, PrimaryBusType, RevisionNumber, SecondaryBusType, Status, StatusInfo, SystemName";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{4f726152-4e1a-4296-a5fe-8addda3bde23}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32Reg_SMSAdvancedClientSSLConfiguration";

DataItemID = "{aa1cab3a-f76f-421b-a365-8d05c6f587d9}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "CertificateSelectionCriteria, CertificateStore, ClientAlwaysOnInternet, HttpsStateFlags, InstanceKey, InternetMPHostName, SelectFirstCertificate";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{789c7bb7-2e7a-441d-926d-e43436b885a8}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_Vulnerability_Detail";

DataItemID = "{aafee7d6-85d6-41a4-a210-4034eeb3920b}";

Namespace = "\\\\.\\root\\ccm\\VulnerabilityAssessment";

Properties = "DetailKey, DetailScore, DetailValue1, DetailValue2, DetailValue3, Tool, VulnerabilityID";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{2bac0712-b5ac-4b34-869f-df517ec2b60e}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "NAP_SystemHealthAgent";

DataItemID = "{b110d660-5b12-4129-954b-e9bd4891c31d}";

Namespace = "\\\\.\\root\\Nap";

Properties = "description, fixupState, friendlyName, id, infoClsid, isBound, percentage, registrationDate, vendorName, version";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{fd2b70a1-2b5a-4468-8451-37ab778aae69}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_CDROMDrive";

DataItemID = "{b59b201a-0e15-4eaa-a0f9-2a4d8813c0f0}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Availability, Description, DeviceID, Drive, Manufacturer, MediaType, Name, SCSITargetId, SystemName, VolumeName";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{5e54af89-fef8-42a3-aeed-d76469c0cf5c}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_OperatingSystem";

DataItemID = "{b7b89129-bf13-45b9-b12e-92a6ccb96be2}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "BootDevice, BuildNumber, Caption, CountryCode, CSDVersion, Description, InstallDate, LastBootUpTime, Locale, Manufacturer, Name, Organization, OSLanguage, RegisteredUser, SystemDirectory, TotalSwapSpaceSize, TotalVirtualMemorySize, TotalVisibleMemorySize, Version, WindowsDirectory";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{ceb16e2b-2192-4666-8685-9e9a1ee7c340}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_PatchState_Extended";

DataItemID = "{bba1c208-104d-421f-8cc2-ca1e5396c66e}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "ID, Language, ProductID, QNumbers, RevisionNumber, Status, TimeDetected, Title, UpdateID";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{81bceb5b-c00c-4836-a25a-9d5cb31caa99}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "CCM_InstalledComponent";

DataItemID = "{bf41f8ea-5271-4749-997e-69b2618a4b6d}";

Namespace = "root\\ccm";

Properties = "DisplayName, Name, Version";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{51836093-6f48-411f-bf9e-0ef2f604a96c}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "SMS_AMTObject";

DataItemID = "{d75986fd-8c26-4487-a69e-daa97df6a8ca}";

Namespace = "\\\\.\\root\\cimv2\\sms";

Properties = "AMT, AMTApps, BiosVersion, BuildNumber, DeviceID, Flash, LegacyMode, Netstack, ProvisionMode, ProvisionState, RecoveryBuildNum, RecoveryVersion, Sku, TLSMode, VendorID, ZTCEnabled";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{4ee821f4-f3b7-484d-a130-834325590e78}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_DiskPartition";

DataItemID = "{db454da2-b3f4-410a-9d77-c51bbd7cfc9d}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Access, Bootable, BootPartition, Description, DeviceID, Name, PrimaryPartition, Size, SystemName, Type";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{2bcf3ff7-f641-4e70-a02e-eec59766e2d6}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_DiskDrive";

DataItemID = "{db4dacf1-7683-4855-b145-d3e12b029a60}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Availability, Description, DeviceID, Index, InterfaceType, Manufacturer, MediaType, Model, Name, Partitions, PNPDeviceID, SCSIBus, SCSILogicalUnit, SCSIPort, SCSITargetId, Size, SystemName";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{509a360f-a09f-4c00-97b1-a08561798405}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_VideoController";

DataItemID = "{dd44c081-c876-4f83-b9bc-f7cc073a886f}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "AdapterCompatibility, AdapterDACType, AdapterRAM, CurrentBitsPerPixel, CurrentHorizontalResolution, CurrentNumberOfColumns, CurrentNumberOfRows, CurrentRefreshRate, CurrentScanMode, CurrentVerticalResolution, Description, DeviceID, DriverDate, DriverVersion, InstalledDisplayDrivers, Name, NumberOfColorPlanes, SpecificationVersion, VideoMode, VideoModeDescription, VideoProcessor";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{a3eb3df0-7a78-4f41-b669-4c495a0f8c01}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32Reg_AddRemovePrograms64";

DataItemID = "{e2dc1ce2-29b2-466a-b271-efd328ddff69}";

Namespace = "\\\\localhost\\root\\cimv2";

Properties = "DisplayName, InstallDate, ProdID, Publisher, Version";

Timeout = 600000;

Context = {

instance of InventoryDataContext

{

Name = "__ProviderArchitecture";

Type = "3";

Value = {"64"};

},

instance of InventoryDataContext

{

Name = "__RequiredArchitecture";

Type = "11";

Value = {"true"};

}};

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{2e8f6243-5298-4f41-9890-42fb6371bf0d}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_PnpEntity";

DataItemID = "{e61dda00-2f69-499a-a519-ac463775210a}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "ConfigManagerErrorCode, DeviceID, ErrorDescription, LastErrorCode, Name, PNPDeviceID";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{602c051a-944f-408f-b229-7e7fc59ad89c}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Win32_USBController";

DataItemID = "{e9b44a14-a880-46a5-9daa-1b680322ec8c}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Availability, Description, DeviceID, Name";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{1c169541-b2b0-4b9d-8f6d-efdd76faca9a}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "Application";

DataItemID = "{f6c1705a-dbb6-4e64-bc4e-2aa79d63ae78}";

Namespace = "\\\\localhost\\root\\Microsoft\\appvirt\\client";

Properties = "LastLaunchOnSystem, Name, PackageGUID, Version";

Timeout = 600000;

};

instance of InventoryDataItem

{

PolicyID = "{84d1c924-f29b-4ec7-a9fd-6b9b23303c92}";

PolicyVersion = "17.00";

PolicySource = "SMS:MED";

PolicyRuleID = "{88f8b255-12d8-4d64-9809-49def4943976}";

PolicyInstanceID = "{1f999157-749b-419f-97e9-3ed1b86d4753}";

InventoryActionID = "{00000000-0000-0000-0000-000000000001}";

ItemClass = "CCM_LogicalMemoryConfiguration";

DataItemID = "{f6c6b345-aae9-4ed5-9f63-ebe844592695}";

Namespace = "\\\\.\\root\\cimv2";

Properties = "Name, TotalPageFileSpace, TotalPhysicalMemory, TotalVirtualMemory";

Timeout = 600000;

};

//====================================================================================================================================

//

// Configuration.mof - WMI configuration that will be compiled on

//    SMS clients.

//

// Copyright (c) Microsoft Corporation, All Rights Reserved

// Updated by : Dominique DUCHEMIN - 01/20/2009 - Addition of classes to collect information for remote Assistance

//

//====================================================================================================================================

//====================================================================================================================================

// Define registry classes for inventory reporting

//

// - Registry key/value class definition should be done in cimv2,

// - SMS class definition should be done in cimv2\\sms

//====================================================================================================================================

//----------------------

// Add Remove Programs

//----------------------

#pragma namespace ("\\\\.\\root\\cimv2")

[ dynamic,

 provider("RegProv"),

 ClassContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall")

]

class Win32Reg_AddRemovePrograms

{

   [key]

       string    ProdID;

   [PropertyContext("DisplayName")]

       string    DisplayName;

   [PropertyContext("InstallDate")]

       string    InstallDate;

   [PropertyContext("Publisher")  ]

       string    Publisher;

   [PropertyContext("DisplayVersion")]

       string    Version;

};

[ dynamic,

 provider("RegProv"),

 ClassContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Windows\\CurrentVersion\\Uninstall")

]

class Win32Reg_AddRemovePrograms64

{

   [key]

       string    ProdID;

   [PropertyContext("DisplayName")]

       string    DisplayName;

   [PropertyContext("InstallDate")]

       string    InstallDate;

   [PropertyContext("Publisher")  ]

       string    Publisher;

   [PropertyContext("DisplayVersion")]

       string    Version;

};

//----------------------

// Virtual PC

//----------------------

#pragma namespace ("\\\\.\\root\\cimv2")

[DYNPROPS]

class Win32Reg_SMSGuestVirtualMachine

{

   [key]

       string InstanceKey;

       string PhysicalHostName;

       string PhysicalHostNameFullyQualified;

};

[DYNPROPS]

instance of Win32Reg_SMSGuestVirtualMachine

{

   InstanceKey = "VPCKey";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostName"),

                   Dynamic, Provider("RegPropProv")]

       PhysicalHostName;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostNameFullyQualified"),

                   Dynamic, Provider("RegPropProv")]

       PhysicalHostNameFullyQualified;

};

[DYNPROPS]

class Win32Reg_SMSGuestVirtualMachine64

{

   [key]

       string InstanceKey;

       string PhysicalHostName;

       string PhysicalHostNameFullyQualified;

};

[DYNPROPS]

instance of Win32Reg_SMSGuestVirtualMachine64

{

   InstanceKey = "VPCKey";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostName"),

                   Dynamic, Provider("RegPropProv")]

       PhysicalHostName;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\Virtual Machine\\Guest\\Parameters|PhysicalHostNameFullyQualified"),

                   Dynamic, Provider("RegPropProv")]

       PhysicalHostNameFullyQualified;

};

//----------------------

// Advanced Client Ports

//----------------------

#pragma namespace ("\\\\.\\root\\cimv2")

#pragma deleteclass("Win32Reg_SMSAdvancedClientPorts", NOFAIL)

[DYNPROPS]

class Win32Reg_SMSAdvancedClientPorts

{

   [key]

       string InstanceKey;

       uint32 PortName;

       uint32 HttpsPortName;

};

[DYNPROPS]

instance of Win32Reg_SMSAdvancedClientPorts

{

   InstanceKey = "SMSPortKey";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM|HttpPort"),

                   Dynamic, Provider("RegPropProv")]

       PortName;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM|HttpsPort"),

                   Dynamic, Provider("RegPropProv")]

       HttpsPortName;

};

//--------------------------------------------

// Advanced Client SSL Security COnfigurations

//--------------------------------------------

#pragma namespace ("\\\\.\\root\\cimv2")

#pragma deleteclass("Win32Reg_SMSAdvancedClientSSLConfiguration", NOFAIL)

[DYNPROPS]

class Win32Reg_SMSAdvancedClientSSLConfiguration

{

   [key]

       string InstanceKey;

       uint32 HttpsStateFlags;

       string CertificateStore;

       string CertificateSelectionCriteria;

       string InternetMPHostName;

       uint32 SelectFirstCertificate;

       uint32 ClientAlwaysOnInternet;

};

[DYNPROPS]

instance of Win32Reg_SMSAdvancedClientSSLConfiguration

{

   InstanceKey = "SMSSSLConfiguration";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM|HttpsState"),

       Dynamic, Provider("RegPropProv")]

   HttpsStateFlags;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|Certificate Store"),

       Dynamic, Provider("RegPropProv")]

   CertificateStore;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|Certificate Selection Criteria"),

       Dynamic, Provider("RegPropProv")]

   CertificateSelectionCriteria;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Internet Facing|Internet MP Hostname"),

       Dynamic, Provider("RegPropProv")]

   InternetMPHostName;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|Select First Certificate"),

       Dynamic, Provider("RegPropProv")]

   SelectFirstCertificate;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\CCM\\Security|ClientAlwaysOnInternet"),

       Dynamic, Provider("RegPropProv")]

   ClientAlwaysOnInternet;

};

#pragma namespace ("\\\\.\\root\\cimv2")

// Declare the class for client component registry properties

[DYNPROPS]

class Win32Reg_SMSClientState

{

   [key]

       string  Component = "";

       string State;

       string Version;

       string PendingVersion;

       string PendingTime;

};

// Declare the instances, one for each client component

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="SMS Client Base Components";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\SMS Client Base Components\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\SMS Client Base Components\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\SMS Client Base Components\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\SMS Client Base Components\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Available Programs Manager Win32";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Available Programs Manager Win32\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Available Programs Manager Win32\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Available Programs Manager Win32\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Available Programs Manager Win32\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Windows Management";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Windows Management\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\WBEM|Build"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Windows Management\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Windows Management\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Software Distribution";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Distribution\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Distribution\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Distribution\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Distribution\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Software Inventory Agent";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Inventory Agent\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Inventory Agent\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Inventory Agent\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Inventory Agent\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Hardware Inventory Agent";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Hardware Inventory Agent\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Hardware Inventory Agent\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Hardware Inventory Agent\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Hardware Inventory Agent\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Remote Control";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Remote Control\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Remote Control\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Remote Control\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Remote Control\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="NT Event To SNMP Trap Translator";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\NT Event To SNMP Trap Translator\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\NT Event To SNMP Trap Translator\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\NT Event To SNMP Trap Translator\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\NT Event To SNMP Trap Translator\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

[DYNPROPS]

instance of Win32Reg_SMSClientState

{

   Component="Software Metering Agent";

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Metering Agent\\Installation Properties|SMS Client Installation State"),

                   Dynamic, Provider("RegPropProv")]

       State;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Metering Agent\\Installation Properties|Installed Version"),

                   Dynamic, Provider("RegPropProv")]

       Version;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Metering Agent\\Installation Properties|Pending Operation Version"),

                   Dynamic, Provider("RegPropProv")]

       PendingVersion;

   [PropertyContext("local|HKEY_LOCAL_MACHINE\\Software\\Microsoft\\SMS\\Client\\Client Components\\Software Metering Agent\\Installation Properties|Pending Operation Time"),

                   Dynamic, Provider("RegPropProv")]

       PendingTime;

};

// Declare the class to prevent older clients from sending error status messages

#pragma namespace("\\\\.\\root")

instance of __Namespace

{

Name = "ccm" ;

};

#pragma namespace("\\\\.\\root\\ccm")

instance of __Namespace

{

Name = "SoftwareMeteringAgent" ;

};

#pragma namespace("\\\\.\\root\\ccm\\SoftwareMeteringAgent")

class CCM_RecentlyUsedApps

{

  [Key]

  string FolderPath;

  [Key]

  string ExplorerFileName;

  [Key]

  string LastUserName;

  string OriginalFileName;

  string FileVersion;

  uint32 FileSize;

  string ProductName;

  string ProductVersion;

  string CompanyName;

  uint32 ProductLanguage;

  string FileDescription;

  uint32 LaunchCount;

  datetime LastUsedTime;

  string ProductCode;

  string AdditionalProductCodes;

  string msiDisplayName;

  string msiPublisher;

  string msiVersion;

  string SoftwarePropertiesHash;

  string FilePropertiesHash;

};

#pragma namespace("\\\\.\\root")

instance of __Namespace

{

Name = "ccm" ;

};

#pragma namespace("\\\\.\\root\\ccm")

// CAL tracking server side configurations and policy

[Singleton]

class CCM_CALTrackConfig

{

   uint32   CALCollectionType;

   uint32   CALCollectionFrequencyDays;

   uint32   CALCollectionFrequencyMinutes;

   uint32   CALCollectionTimeWindow;

   string   CALCollectionSupportedWindowsVersions;

};

instance of CCM_CALTrackConfig

{

   CALCollectionType = 0; //0-Disabled, 1-User CAL, 2-Device CAL, 3-All

   CALCollectionFrequencyDays = 7;

   CALCollectionFrequencyMinutes = 60;

   CALCollectionTimeWindow = 90;

   CALCollectionSupportedWindowsVersions = "5.0,5.2,6.0";

};

//------------------------------------------------------------------------------

// Class: SMS_InstalledSoftware

// Declare here to prevent pre-SP1 AI enabled clients from stumbling on newly

// added properties, e.g., EvidenceSource

//------------------------------------------------------------------------------

#pragma namespace ("\\\\.\\root\\cimv2\\sms")

[ dynamic, provider("AAInstProv")]

class SMS_InstalledSoftware

{

       [key]  

       string     SoftwareCode;

       uint32     InstallType;

       string     ProductCode;

       string     CM_DSLID;

       string     ProductName;

       string     ARPDisplayName;

       string     ProductVersion;

       string     Publisher;

       uint32     VersionMajor;

       uint32     VersionMinor;

       string     ServicePack;

       uint32     Language;

       string     ProductID;

       string     InstalledLocation;

       string     InstallSource;

       string     UninstallString;

       string     LocalPackage;

       string     UpgradeCode;

       datetime   InstallDate;

       string     RegisteredUser;

       string     SoftwarePropertiesHash;

       string     SoftwarePropertiesHashEx;

       uint32     InstallDirectoryValidation;

       string     ChannelCode;

       string     EvidenceSource;

};

//--------------------------------------------

// CCM_LogicalMemoryConfiguration

//--------------------------------------------

#pragma namespace("\\\\.\\root\\cimv2")

[Union,ViewSources{"select Name,FreeVirtualMemory,SizeStoredInPagingFiles,TotalVisibleMemorySize,TotalVirtualMemorySize from Win32_OperatingSystem"},ViewSpaces{"\\\\.\\root\\cimv2"},

dynamic,Provider("MS_VIEW_INSTANCE_PROVIDER")]

class CCM_LogicalMemoryConfiguration

{

   [PropertySources{"FreeVirtualMemory"}]

   uint64          AvailableVirtualMemory;

   [PropertySources{"Name"},key]

   string          Name;

   [PropertySources{"SizeStoredInPagingFiles"}]

   uint64          TotalPageFileSpace;

   [PropertySources{"TotalVisibleMemorySize"}]

   uint64          TotalPhysicalMemory;

   [PropertySources{"TotalVirtualMemorySize"}]

   uint64          TotalVirtualMemory;

};

#pragma namespace ("\\\\.\\root\\cimv2")

//========================

// Added extensions start

//========================

//Remote Assistance Requests Data Class

#pragma namespace("\\\\.\\root\\cimv2")

[Union,

ViewSources{"Select * FROM Win32_NTLogEvent WHERE LogFile='Application' AND SourceName='Remote Assistance'"},

ViewSpaces{"\\\\.\\root\\cimv2"},

dynamic,provider("MS_VIEW_INSTANCE_PROVIDER")]

Class RARequests

{

[PropertySources("LogFile"), Key] string LogFile;

[PropertySources("EventCode")] UINT16 EventCode;

[PropertySources("RecordNumber"), Key] UINT32 Recordnumber;

[PropertySources("Message")] String Message;

[PropertySources("TimeGenerated")] DateTime TimeGenerated;

};

//Remote Assistance Requests Reporting Class

#pragma namespace("\\\\.\\root\\cimv2\\sms")

[SMS_Report(TRUE),

SMS_Group_Name("Remote Assistance Requests"),

SMS_Class_ID("MICROSOFT|RARequests|1.0")]

Class RARequests: SMS_Class_Template

{

[SMS_Report(TRUE), Key] String LogFile;

[SMS_Report(TRUE), SMS_Units("DecimalString")] UINT16 EventCode;

[SMS_Report(TRUE), Key, SMS_Units("DecimalString")] UINT32 RecordNumber;

[SMS_Report(True)] String Message;

[SMS_Report(True)] DateTime TimeGenerated;

};

//Remote Assistance Connections Data Class

#pragma namespace("\\\\.\\root\\cimv2")

[Union,

ViewSources{"Select * FROM Win32_NTLogEvent WHERE LogFile='Application' AND SourceName='safrslv'"},

ViewSpaces{"\\\\.\\root\\cimv2"},

dynamic,provider("MS_VIEW_INSTANCE_PROVIDER")]

Class RAConnections

{

[PropertySources("LogFile"), Key] string LogFile;

[PropertySources("EventCode")] UINT16 EventCode;

[PropertySources("RecordNumber"), Key] UINT32 Recordnumber;

[PropertySources("Message")] String Message;

[PropertySources("TimeGenerated")] DateTime TimeGenerated;

};

//Remote Assistance Connections Reporting Class

#pragma namespace("\\\\.\\root\\cimv2\\sms")

[SMS_Report(TRUE),

SMS_Group_Name("Remote Assistance Connections"),

SMS_Class_ID("MICROSOFT|RAConnections|1.0")]

Class RAConnections: SMS_Class_Template

{

[SMS_Report(TRUE), Key] String LogFile;

[SMS_Report(TRUE), SMS_Units("DecimalString")] UINT16 EventCode;

[SMS_Report(TRUE), Key, SMS_Units("DecimalString")] UINT32 RecordNumber;

[SMS_Report(True)] String Message;

[SMS_Report(True)] DateTime TimeGenerated;

};

//========================

// Added extensions end

//========================

[/q]

Thank you,

Dom

Dominique

# re: How To Inventory Remote Assistance Requests and Connections with SMS 2003/Configuration Manager 2007 Hardware Inventory@ Thursday, January 22, 2009 3:24 PM

Hello,

I am trying step by step:

I copy/paste or input straight the first step "Remote Assistance Requests data Class" and during the compilation I am getting an error:

C:\Program Files\Microsoft Configuration Manager\inboxes\clifiles.src\hinv>mofco

mp.exe -check configuration-new.mof

Microsoft (R) 32-bit MOF Compiler Version 5.2.3790.3959

Copyright (c) Microsoft Corp. 1997-2001. All rights reserved.

Parsing MOF file: configuration-new.mof

configuration-new.mof (560): error SYNTAX 0X80044007: Illegal constant value. (N

umeric value out of range or strings without quotes)

Compiler returned error 0x80044007

Any idea?

Thanks,

Dom

Dominique

# re: How To Inventory Remote Assistance Requests and Connections with SMS 2003/Configuration Manager 2007 Hardware Inventory@ Thursday, January 22, 2009 6:25 PM

Finally it works by inputting each lines manually...

Thanks,

Dom

Dominique

# re: How To Inventory Remote Assistance Requests and Connections with SMS 2003/Configuration Manager 2007 Hardware Inventory@ Thursday, January 22, 2009 6:26 PM

Now the MOF is compiled properly I have in the logs some errors:

[quote]SMS Inventory Data Loader failed to process the delta MIF file "XHKTL5VTV.MIF" and has moved it to "C:\Program Files\Microsoft Configuration Manager\inboxes\auth\dataldr.box\BADMIFS\z2hdk5tl.MIF."

Possible cause: The file attempted to update inventory information in the SMS site database that does not already exist, or the file contains invalid syntax.

Solution: The client inventory needs to be resynchronized, which will be done automatically. Look for the status messages 2714 and 2715, which indicate the resynchronization has begun.[/quote]

Dominique

# re: How To Inventory Remote Assistance Requests and Connections with SMS 2003/Configuration Manager 2007 Hardware Inventory@ Thursday, January 22, 2009 8:56 PM

Everything works now thanks a lot Jeff for this excellent article...

I am working on having the Inventory working now as only 3 out of 7 machines reported and creating a report on these informations as "Remote Control - All remote control information" to show the same information and plus...

Thanks again,

Dom

Dominique