SMS_SoftwareProductCompliance
The SMS_SoftwareProductCompliance WMI class contains compliance information about a software product. For example, you can use this class to track whether your software meets company or industry standards, or supports known date and currency issues.
The following syntax is simplified from MOF code and includes all inherited properties.
Class SMS_SoftwareProductCompliance : SMS_BaseClass
{
string Category;
string Comment;
string FileName;
uint32 FileSize;
string ProdCompany;
string ProdLang;
string ProdName;
string ProdPlatform;
string ProdRev;
string ProdVer;
uint32 RecordID;
uint32 ResProdLangID;
string ResProdName;
string ResProdVer;
string Source;
string Type;
string URL;
};
Properties
Category
Data type: string
Access type: Read/writeProduct compliance category. This property cannot be left blank. For the "Y
ear 2000
" value of Type, the possible values for Category are:
"Compliant
"
"Compliant with minor issues
"
"Compliant with prerequisites
"
"Compliant with minor issues with prerequisites
"
"Not compliant
"
"Testing yet to be completed
"
"Will not test
"Comment
Data type: string
Access type: Read/writeAdditional information about the product's compliance. When a patch for the product is available but not necessary to reach compliance, this property contains the string "
Fixes available
".FileName
Data type: string
Access type: Read/writeExecutable file name, not including the path.
FileSize
Data type: uint32
Access type: Read/writeSize (bytes) of the file specified in FileName.
ProdCompany
Data type: string
Access type: Read/writeString representing the name of the company that produced the product.
ProdLang
Data type: string
Access type: Read/writeProduct language. If this property is blank, the Import method tries to create the language string by converting the ResProdLangID value to a text string.
ProdName
Data type: string
Access type: Read/writeProduct name. If this property is blank, the Import method creates the name using ResProdName, or FileName and FileSize.
ProdPlatform
Data type: string
Access type: Read/writePlatform for which the product was written.
ProdRev
Data type: string
Access type: Read/writeSpecific revision within the product version.
ProdVer
Data type: string
Access type: Read/writeVersion level of the product. If this property is blank, the Import method creates the version using the ResProdVer property.
RecordID
Data type: uint32
Access type: Read-onlyUnique identifier to the instance.
ResProdLangID
Data type: uint32
Access type: Read/writeProduct language identifier, taken from the executable file resource or the DLL resource. A locale identifier of 65535 (xFFFF) is a special value used by the predefined SMS software inventory queries. This value has the effect of matching any language identifier found in software discovery.
ResProdName
Data type: string
Access type: Read/writeProduct name from the executable file resource or the DLL resource. The name is often different from the name specified in ProdName.
ResProdVer
Data type: string
Access type: Read/writeVersion from the executable file resource or the DLL resource. The version is often different from the version specified in ProdVer.
Source
Data type: string
Access type: Read/writeSource of the compliance information. Multiple sources can supply compliance information on the same ProdName property. If this property is blank, the Import method creates the data source using the domain\username of the user.
Type
Data type: string
Access type: Read/writeType of compliance. This property cannot be left blank.
Example: "
Year 2000
"URL
Data type: string
Access type: Read/writeUniform resource locator (Web site address) where additional information about the product, its compliance, and any patches may be found.
Methods
The following table lists the methods in SMS_SoftwareProductCompliance.
Method | Description |
---|---|
DeleteByQuery | Class method that deletes a group of records specified by a WQL SELECT statement. It returns the number of rows deleted. |
Export | Class method that exports program compliance information from the database in tab-delimited format. It returns the number of records exported. |
Import | Class method that overwrites, in the database, any matching record of program-compliance data. The data is in tab-delimited format. It returns the number of valid records imported. |
ProcessInBox | Class method that imports all files found in the software product compliance inbox. It returns the number of records imported. |
Remarks
The Import and ProcessInBox methods are used to load compliance data into the SMS database. The Import and ProcessInBox methods import software product compliance data from a tab-delimited text file supplied by the product vendor or built by the system administrator. The file can contain information from one or more sources. SMS is shipped with the latest Microsoft compliance file, Y2kprod.txt, which is located in the \SMSSETUP\Sms\Y2k directory.
See Also
Resource Management Classes, Tracking Product Compliance Issues