String that indicates the current status of the object. Operational and non-operational status can be
defined. Operational status can include "OK", "Degraded", and "Pred Fail". "Pred Fail" indicates that an
element is functioning properly, but is predicting a failure (for example, a SMART-enabled hard disk drive).

Non-operational status can include "Error", "Starting", "Stopping", and "Service". "Service" can apply during
disk mirror-resilvering, reloading a user permissions list, or other administrative work. Not all such work is
online, but the managed element is neither "OK" nor in one of the other states.

Placeholder variable of a Windows-based environment variable. Information like the file system directory can change from computer to computer. The operating system substitutes placeholders for these.

Example: "%SystemRoot%"

Remarks

The Win32_Environment class is derived from CIM_SystemResource. You can use this class to find the paths of special folders such as the System folder or Program files on a remote machine. Some examples are: windir, systemroot, programfiles, and userprofile. Win32_Environment basically returns what can be found in:

The calling process that uses this class must have the SE_RESTORE_NAME privilege on the computer in which the registry resides. For example, if you enumerate this class on the local computer, the account under which your application runs must have this privilege. For more information, see Executing Privileged Operations.

The following VBScript code example changes an environment variable named BUILD_TYPE to a value input by the user.
The script assumes that the BUILD_TYPE variable already exists. If it does not exist then the script ends.
The input value is checked: it must be either "Build1", "Build2", or "Build3", and no other value is accepted. The VBScript UCase function makes the input case-insensitive. If what is typed in is
not one of the three acceptable values, the script ends.