Thanks Sherry, your information was helpful, got me on the right track. Now I've got it working and it's checking both OSes correctly. Here are the mof edits I made:
Configuration.mof
======================================================
//---------------------------------------------
// TS 2008 Properties
//---------------------------------------------
[Union, ViewSources{"select ServerName,TerminalServerMode,LicensingName from Win32_TerminalServiceSetting"},ViewSpaces{"\\\\.\\root\\cimv2\\TerminalServices"}, dynamic,Provider("MS_VIEW_INSTANCE_PROVIDER")]
class ts_win2008
{
[PropertySources{"ServerName"},key ] string ServerName;
[PropertySources{"TerminalServerMode"} ] uint32 TerminalServerMode;
[PropertySources{"LicensingName"} ] string LicensingName;
};
//---------------------------------------------
// TS 2003 Properties
//---------------------------------------------
[Union, ViewSources{"select ServerName,TerminalServerMode,LicensingName from Win32_TerminalServiceSetting"},ViewSpaces{"\\\\.\\root\\cimv2"}, dynamic,Provider("MS_VIEW_INSTANCE_PROVIDER")]
class ts_win2003
{
[PropertySources{"ServerName"},key ] string ServerName;
[PropertySources{"TerminalServerMode"} ] uint32 TerminalServerMode;
[PropertySources{"LicensingName"} ] string LicensingName;
};
sms_def.mof
==============================
// Terminal Server 2008 Information Class Created: 6/15/2011
[dynamic, provider("MS_VIEW_INSTANCE_PROVIDER"),
SMS_Report (TRUE),
SMS_Group_Name ("TS_Win2008"),
SMS_Class_ID ("CUSTOM|TS_Win2008|1.0")]
class ts_win2008 : SMS_Class_Template
{
[SMS_Report(TRUE),key] string ServerName;
[SMS_Report(TRUE)] uint32 TerminalServerMode;
[SMS_Report(TRUE)] string LicensingName;
};
// Terminal Server 2003 Information Class Created: 6/15/2011
[dynamic, provider("MS_VIEW_INSTANCE_PROVIDER"),
SMS_Report (TRUE),
SMS_Group_Name ("TS_Win2003"),
SMS_Class_ID ("CUSTOM|TS_Win2003|1.0")]
class ts_win2003 : SMS_Class_Template
{
[SMS_Report(TRUE),key] string ServerName;
[SMS_Report(TRUE)] uint32 TerminalServerMode;
[SMS_Report(TRUE)] string LicensingName;
};