Environment Attribute Class

This class contains information on an environment or system variable on a client computer. This class is not included in a default hardware inventory operation.

Table C.16 Environment Attribute Class (SMS_G_System_ENVIRONMENT)

Property
(Bold if collected)
Data
type

Example

Notes
Captionstring Describes the object. Maximum length is 64 characters.
Descriptionstring Describes the object.
GroupIDuint322Within one ResourceId (one SMS client), GroupID distinguishes one instance of a class from another. Objects with the same ResourceId and GroupID are “deltas” of one another, describing the same hardware inventory instance at different points in time. This is not a collectable property.
InstallDatedatetimeSee “Date and Time Formats” at the beginning of Appendix B.Indicates when the object was installed. The absence of a value does not indicate that the object is not installed.
Namestring"windir"Key. Defines the label that the object is known by. Maximum length is 256 characters.
ResourceIduint3242Key. Inventory items with the same ResourceId were all discovered on the same SMS client. The ResourceId identifies the SMS client.

A ResourceId is an integer generated for the sake of SQL; it is not unique outside the site and should be used only for short-term querying purposes. It is not a collectable property.

RevisionIDuint321Objects with the same ResourceId and GroupID are deltas, differentiated from one another by RevisionID number. The highest number is the most recent update. This is not a collectable property.
Statusstring"OK"Indicates the current status of the object.

Values are:
OK
Error
Degraded
Unknown

Maximum length is 10 characters.

SystemVariableuint321Determines whether the variable is a system variable.

Values are:
1=True
0=False

If the value is True, the variable is a system variable.

TimeStampdatetimeSee “Date and Time Formats” at the beginning of Appendix B.Indicates when the information in this object was last revised. This is not a collectable property.
UserNamestring"<SYSTEM>"Key. Indicates the user name of a Win32 environment.
VariableValuestring"%SystemRoot%"Indicates the value of a Win32 environment variable.