EnvironmentVariables method of the Win32_TSExpandEnvironmentVariables class

Expands system-defined environment variables.

Syntax

uint32 EnvironmentVariables(
  [in]  string OriginalString,
  [out] string ExpandedString
);

Parameters

OriginalString [in]

A string that contains the environment variables to expand.

ExpandedString [out]

A string with the environment variables expanded.

Remarks

You must be a member of the Administrators group to call this method.

Managed Object Format (MOF) files contain the definitions for Windows Management Instrumentation (WMI) classes. MOF files are not installed as part of the Microsoft Windows Software Development Kit (SDK). They are installed on the server when you add the associated role by using the Server Manager. For more information about MOF files, see Managed Object Format (MOF).

Requirements

Requirement Value
Minimum supported client
None supported
Minimum supported server
Windows Server 2008
Namespace
Root\CIMv2\TerminalServices
MOF
Tsallow.mof
DLL
TsPubWmi.dll

See also

Win32_TSExpandEnvironmentVariables