WSMAN_ENVIRONMENT_VARIABLE structure (wsman.h)

Defines an individual environment variable by using a name and value pair. This structure is used by the WSManCreateShell method. The representation of the value variable is shell specific. The client and server must agree on the format of the value variable.

Syntax

typedef struct _WSMAN_ENVIRONMENT_VARIABLE {
  PCWSTR name;
  PCWSTR value;
} WSMAN_ENVIRONMENT_VARIABLE;

Members

name

Defines the environment variable name. This parameter cannot be NULL.

value

Defines the environment variable value. NULL or empty string values are permitted.

Requirements

Requirement Value
Minimum supported client Windows 7
Minimum supported server Windows Server 2008 R2
Header wsman.h
Redistributable Windows Management Framework on Windows Server 2008 with SP2, Windows Vista with SP1, and Windows Vista with SP2