WSManSessionOption enumeration (wsman.h)
Defines a set of extended options for the session. These options are used with the WSManSetSessionOption method.
Syntax
typedef enum WSManSessionOption {
WSMAN_OPTION_DEFAULT_OPERATION_TIMEOUTMS = 1,
WSMAN_OPTION_MAX_RETRY_TIME = 11,
WSMAN_OPTION_TIMEOUTMS_CREATE_SHELL = 12,
WSMAN_OPTION_TIMEOUTMS_RUN_SHELL_COMMAND = 13,
WSMAN_OPTION_TIMEOUTMS_RECEIVE_SHELL_OUTPUT = 14,
WSMAN_OPTION_TIMEOUTMS_SEND_SHELL_INPUT = 15,
WSMAN_OPTION_TIMEOUTMS_SIGNAL_SHELL = 16,
WSMAN_OPTION_TIMEOUTMS_CLOSE_SHELL = 17,
WSMAN_OPTION_SKIP_CA_CHECK = 18,
WSMAN_OPTION_SKIP_CN_CHECK = 19,
WSMAN_OPTION_UNENCRYPTED_MESSAGES = 20,
WSMAN_OPTION_UTF16 = 21,
WSMAN_OPTION_ENABLE_SPN_SERVER_PORT = 22,
WSMAN_OPTION_MACHINE_ID = 23,
WSMAN_OPTION_LOCALE = 25,
WSMAN_OPTION_UI_LANGUAGE = 26,
WSMAN_OPTION_MAX_ENVELOPE_SIZE_KB = 28,
WSMAN_OPTION_SHELL_MAX_DATA_SIZE_PER_MESSAGE_KB = 29,
WSMAN_OPTION_REDIRECT_LOCATION = 30,
WSMAN_OPTION_SKIP_REVOCATION_CHECK = 31,
WSMAN_OPTION_ALLOW_NEGOTIATE_IMPLICIT_CREDENTIALS = 32,
WSMAN_OPTION_USE_SSL = 33,
WSMAN_OPTION_USE_INTEARACTIVE_TOKEN = 34
} ;
Constants
WSMAN_OPTION_DEFAULT_OPERATION_TIMEOUTMSValue: 1 Default time-out in milliseconds that applies to all operations on the client side. |
WSMAN_OPTION_MAX_RETRY_TIMEValue: 11 |
WSMAN_OPTION_TIMEOUTMS_CREATE_SHELLValue: 12 Time-out in milliseconds for WSManCreateShell operations. |
WSMAN_OPTION_TIMEOUTMS_RUN_SHELL_COMMANDValue: 13 Time-out in milliseconds for WSManRunShellCommand operations. |
WSMAN_OPTION_TIMEOUTMS_RECEIVE_SHELL_OUTPUTValue: 14 Time-out in milliseconds for WSManReceiveShellOutput operations. |
WSMAN_OPTION_TIMEOUTMS_SEND_SHELL_INPUTValue: 15 Time-out in milliseconds for WSManSendShellInput operations. |
WSMAN_OPTION_TIMEOUTMS_SIGNAL_SHELLValue: 16 Time-out in milliseconds for WSManSignalShell and WSManCloseCommand operations. |
WSMAN_OPTION_TIMEOUTMS_CLOSE_SHELLValue: 17 Time-out in milliseconds for WSManCloseShell operations connection options. |
WSMAN_OPTION_SKIP_CA_CHECKValue: 18 Set to 1 to not validate the CA on the server certificate. The default is 0. |
WSMAN_OPTION_SKIP_CN_CHECKValue: 19 Set to 1 to not validate the CN on the server certificate. The default is 0. |
WSMAN_OPTION_UNENCRYPTED_MESSAGESValue: 20 Set to 1 to not encrypt messages. The default is 0. |
WSMAN_OPTION_UTF16Value: 21 Set to 1 to send all network packets for remote operations in UTF16. Default of 0 causes network packets to be sent in UTF8. |
WSMAN_OPTION_ENABLE_SPN_SERVER_PORTValue: 22 Set to 1 when using Negotiate authentication and the port number is included in the connection. Default is 0. |
WSMAN_OPTION_MACHINE_IDValue: 23 Set to 1 to identify this machine to the server by including the MachineID. The default is 0. |
WSMAN_OPTION_LOCALEValue: 25 The language locale options. For more information about the language locales, see the RFC 3066 specification from the Internet Engineering Task Force at http://www.ietf.org/rfc/rfc3066.txt. |
WSMAN_OPTION_UI_LANGUAGEValue: 26 The UI language options. The UI language options are defined in RFC 3066 format. For more information about the UI language options, see the RFC 3066 specification from the Internet Engineering Task Force at http://www.ietf.org/rfc/rfc3066.txt. |
WSMAN_OPTION_MAX_ENVELOPE_SIZE_KBValue: 28 The maximum Simple Object Access Protocol (SOAP) envelope size. The default is 150 KB. |
WSMAN_OPTION_SHELL_MAX_DATA_SIZE_PER_MESSAGE_KBValue: 29 The maximum size of the data that is provided by the client. |
WSMAN_OPTION_REDIRECT_LOCATIONValue: 30 The redirect location. Note It is recommended that all redirection use Secure Sockets Layer (SSL) and that all applications validate the redirected URI before creating a new session. |
WSMAN_OPTION_SKIP_REVOCATION_CHECKValue: 31 Set to 1 to not validate the revocation status on the server certificate. The default is 0. |
WSMAN_OPTION_ALLOW_NEGOTIATE_IMPLICIT_CREDENTIALSValue: 32 Set to 1 to allow default credentials for Negotiate. The default is 0. |
WSMAN_OPTION_USE_SSLValue: 33 |
WSMAN_OPTION_USE_INTEARACTIVE_TOKENValue: 34 |
Requirements
| 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 and Windows Vista with SP2 |