Other Session Constants
Constants, listed in the following list, in the __WSManSessionFlags enumeration that specify encoding, encryption, and service principal name port.
-
WSManFlagUTF8
-
-
1 (0x1)
-
Sends the request in UTF8 rather than UTF16.
The associated scripting method is WSMan.SessionFlagUTF8 and the C++ method is IWSManEx.SessionFlagUTF8.
-
-
WSManFlagNoEncryption
-
-
1048576 (0x100000)
-
Do not encrypt the messages sent over the network. This setting is allowed only if the listener is configured so that AllowUnencrypted is set to True.
The associated scripting method is WSMan.SessionFlagNoEncryption and the C++ method is IWSManEx.SessionFlagNoEncryption.
-
-
WSManFlagEnableSPNServerPort
-
-
4194304 (0x400000)
-
Specify the Service Principal Name (SPN) port when connecting directly to remote BMC hardware, also known as an out-of-band connection. Because both the WinRM server computer and the BMC hardware can share the same IP address, this flag indicates that the SPN port number must be used to determine whether the connection is to the service or directly to the BMC. For more information, see Name Formats for Unique SPNs.
The associated scripting method is WSMan.SessionFlagEnableSPNServerPort and the C++ method is IWSManEx.SessionFlagEnableSPNServerPort.
-
-
WSManFlagUTF16
-
-
0x800000
-
Sends the request in UTF16.
-
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista |
Minimum supported server |
Windows Server 2008 |
Header |
|
IDL |
|