Condividi tramite


Enumerazione WSManSessionOption (wsman.h)

Definisce un set di opzioni estese per la sessione. Queste opzioni vengono usate con il metodo WSManSetSessionOption .

Sintassi

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
} ;

Costanti

 
WSMAN_OPTION_DEFAULT_OPERATION_TIMEOUTMS
Valore: 1
Timeout predefinito in millisecondi che si applica a tutte le operazioni sul lato client.
WSMAN_OPTION_MAX_RETRY_TIME
Valore: 11
WSMAN_OPTION_TIMEOUTMS_CREATE_SHELL
Valore: 12
Timeout in millisecondi per le operazioni WSManCreateShell .
WSMAN_OPTION_TIMEOUTMS_RUN_SHELL_COMMAND
Valore: 13
Timeout in millisecondi per le operazioni WSManRunShellCommand .
WSMAN_OPTION_TIMEOUTMS_RECEIVE_SHELL_OUTPUT
Valore: 14
Timeout in millisecondi per le operazioni WSManReceiveShellOutput .
WSMAN_OPTION_TIMEOUTMS_SEND_SHELL_INPUT
Valore: 15
Timeout in millisecondi per le operazioni WSManSendShellInput .
WSMAN_OPTION_TIMEOUTMS_SIGNAL_SHELL
Valore: 16
Timeout in millisecondi per le operazioni WSManSignalShell e WSManCloseCommand .
WSMAN_OPTION_TIMEOUTMS_CLOSE_SHELL
Valore: 17
Timeout in millisecondi per le opzioni di connessione delle operazioni WSManCloseShell .
WSMAN_OPTION_SKIP_CA_CHECK
Valore: 18
Impostare su 1 per non convalidare la CA nel certificato del server. Il valore predefinito è 0.
WSMAN_OPTION_SKIP_CN_CHECK
Valore: 19
Impostare su 1 per non convalidare il cn nel certificato del server. Il valore predefinito è 0.
WSMAN_OPTION_UNENCRYPTED_MESSAGES
Valore: 20
Impostare su 1 per non crittografare i messaggi. Il valore predefinito è 0.
WSMAN_OPTION_UTF16
Valore: 21
Impostare su 1 per inviare tutti i pacchetti di rete per le operazioni remote in UTF16. Il valore predefinito 0 fa sì che i pacchetti di rete vengano inviati in UTF8.
WSMAN_OPTION_ENABLE_SPN_SERVER_PORT
Valore: 22
Impostare su 1 quando si usa l'autenticazione Negotiate e il numero di porta è incluso nella connessione. Il valore predefinito è 0.
WSMAN_OPTION_MACHINE_ID
Valore: 23
Impostare su 1 per identificare il computer sul server includendo MachineID. Il valore predefinito è 0.
WSMAN_OPTION_LOCALE
Valore: 25
Opzioni delle impostazioni locali della lingua. Per altre informazioni sulle impostazioni locali della lingua, vedere la specifica RFC 3066 di Internet Engineering Task Force all'indirizzo http://www.ietf.org/rfc/rfc3066.txt.
WSMAN_OPTION_UI_LANGUAGE
Valore: 26
Opzioni della lingua dell'interfaccia utente. Le opzioni del linguaggio dell'interfaccia utente sono definite in formato RFC 3066. Per altre informazioni sulle opzioni del linguaggio dell'interfaccia utente, vedere la specifica RFC 3066 di Internet Engineering Task Force all'indirizzo http://www.ietf.org/rfc/rfc3066.txt.
WSMAN_OPTION_MAX_ENVELOPE_SIZE_KB
Valore: 28
Dimensioni massime della busta SOAP (Simple Object Access Protocol). Il valore predefinito è 150 KB.
WSMAN_OPTION_SHELL_MAX_DATA_SIZE_PER_MESSAGE_KB
Valore: 29
Dimensioni massime dei dati forniti dal client.
WSMAN_OPTION_REDIRECT_LOCATION
Valore: 30
Percorso di reindirizzamento.

Nota È consigliabile che tutti i reindirizzamenti usino Secure Sockets Layer (SSL) e che tutte le applicazioni convalidano l'URI reindirizzato prima di creare una nuova sessione.

 
WSMAN_OPTION_SKIP_REVOCATION_CHECK
Valore: 31
Impostare su 1 per non convalidare lo stato di revoca nel certificato del server. Il valore predefinito è 0.
WSMAN_OPTION_ALLOW_NEGOTIATE_IMPLICIT_CREDENTIALS
Valore: 32
Impostare su 1 per consentire le credenziali predefinite per Negotiate. Il valore predefinito è 0.
WSMAN_OPTION_USE_SSL
Valore: 33
WSMAN_OPTION_USE_INTEARACTIVE_TOKEN
Valore: 34

Requisiti

   
Client minimo supportato Windows 7
Server minimo supportato Windows Server 2008 R2
Intestazione wsman.h
Componente ridistribuibile Windows Management Framework in Windows Server 2008 con SP2 e Windows Vista con SP2