Skip to content

Latest commit

 

History

History
106 lines (60 loc) · 3.54 KB

other-session-constants.md

File metadata and controls

106 lines (60 loc) · 3.54 KB
title description ms.assetid ms.tgt_platform topic_type api_name api_location api_type ms.topic ms.date
Other Session Constants (WSManDisp.h)
Specify encoding, encryption, and service principal name port.
a921b7bc-1f40-427c-971f-c0bc9c9f6887
multiple
apiref
WSManFlagUTF8
WSManFlagNoEncryption
WSManFlagEnableSPNServerPort
WSManFlagUTF16
WSManDisp.h
HeaderDef
reference
05/31/2018

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
WSManDisp.h
IDL
WSManDisp.idl

See also

Session Constants