Events
19 May, 18 - 23 May, 00
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Gets the value of a session option.
DWORD WSManGetSessionOptionAsString(
[in] WSMAN_SESSION_HANDLE session,
WSManSessionOption option,
DWORD stringLength,
[out, optional] PWSTR string,
[out] DWORD *stringLengthUsed
);
[in] session
Specifies the session handle returned by a WSManCreateSession call. This parameter cannot be NULL.
option
Specifies the option to get. Not all session options can be retrieved. The values for the options are defined in the WSManSessionOption enumeration.
stringLength
Specifies the length of the storage location for string parameter.
[out, optional] string
A pointer to the storage location for the value of the specified session option.
[out] stringLengthUsed
Specifies the length of the string returned in the string parameter.
This method returns zero on success. Otherwise, this method returns an error code.
Requirement | Value |
---|---|
Minimum supported client | Windows 7 |
Minimum supported server | Windows Server 2008 R2 |
Target Platform | Windows |
Header | wsman.h |
Library | WsmSvc.lib |
DLL | WsmSvc.dll |
Redistributable | Windows Management Framework on Windows Server 2008 with SP2 and Windows Vista with SP2 |
Events
19 May, 18 - 23 May, 00
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today