The SMS_InstalledSoftwareMS class is a client Windows Management Instrumentation (WMI) class, in Configuration Manager, that merges Microsoft-specific installed software information from multiple sources to provide categorization and Microsoft Licensing information.

The following syntax is simplified from Managed Object Format (MOF) code and includes all inherited properties.

Class SMS_InstalledSoftwareMS 
{
	String ChannelCode;
	String ChannelID;
	String MPC;
	String ProductCode;
	String SoftwareCode;
};

Methods

The SMS_InstalledSoftwareMS class does not define any methods.

Properties

ChannelCode


Data type: StringAccess type: Read-onlyQualifiers: NoneThe procurement channel for the product. Possible values are:

0

Full Packaged Product

1

Compliance Checked Product

2

OEM

3

Volume

ChannelID


Data type: StringAccess type: Read-onlyQualifiers: NoneThree-digit ID that is also used to indicate the channel as obtained from the ProductID property for Microsoft products. The specific values vary by product.
MPC


Data type: StringAccess type: Read-onlyQualifiers: NoneUnique five-digit Microsoft Product Code that identifies a specific product family, version, language, and target operating system.
ProductCode


Data type: StringAccess type: Read-onlyQualifiers: NoneA unique code for the particular product release. This code is represented as a GUID for Microsoft Windows Installer based applications or as the string used by the product to register with Add or Remove Programs.
SoftwareCode


Data type: StringAccess type: Read-onlyQualifiers: [key] A standardized version of the ProductCode property. All characters in the string are lowercase.

Remarks

This class merges information from as many as five sources. The first source is the Microsoft Windows MsiEnumProducts function. This function enumerates through all the products that are currently advertised or installed. Other sources of information for all installed software are the following registry keys:

  • HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Installer\UserData\[User SID]\Products

  • HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall

The class also gathers information for operating system software from the following sources:

  • WMI class root\CIMV2:Win32_OperatingSystem

  • Registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion

Requirements

Runtime Requirements

Development Requirements

See Also


Send comments about this topic to Microsoft.