2.2.2.1 SESSION_CAPABILITY Message

The Data field of PSRP message specifies a SESSION_CAPABILITY message when the MessageType field has a value of 0x00010002.

In messages of this type, the Data field is UTF-8 encoded XML, equivalent to the XML created by serializing a Complex Object (section 2.2.5.2) with the following extended properties (see section 2.2.5.2.9):

  • Version of the higher-layer application

    • Property name: PSVersion

    • Property type: Version (see section 2.2.5.1.21)

  • Version of the PowerShell Remoting Protocol (see section 3.1.5.3.1)

    • Property name: protocolversion

    • Property type: Version (see section 2.2.5.1.21)

  • Version of the serialization system

    • Property name: SerializationVersion

    • Property type: Version (see section 2.2.5.1.21)

  • Time zone of the client

    • Property name: TimeZone

    • Property type: TimeZone (see section 2.2.3.10) or Null value (see section 2.2.5.1.20)

    • This property is optional and MAY be omitted.

The Complex Object described in this section SHOULD have no associated type names (section 2.2.5.2.3).

Example:

 <Obj RefId="0">
   <MS>
     <Version N="protocolversion">2.2</Version>
     <Version N="PSVersion">2.0</Version>
     <Version N="SerializationVersion">1.1.0.1</Version>
     <BA N="TimeZone">AAEAAAD/////AQAAAAAAAAAEAQAAABxTeXN0ZW0uQ3VycmVudFN5c3RlbVRpbWVab25lBAAAABdtX0NhY2hlZERheWxpZ2h0Q2hhbmdlcw1tX3RpY2tzT2Zmc2V0Dm1fc3RhbmRhcmROYW1lDm1fZGF5bGlnaHROYW1lAwABARxTeXN0ZW0uQ29sbGVjdGlvbnMuSGFzaHRhYmxlCQkCAAAAAMDc8bz///8KCgQCAAAAHFN5c3RlbS5Db2xsZWN0aW9ucy5IYXNodGFibGUHAAAACkxvYWRGYWN0b3IHVmVyc2lvbghDb21wYXJlchBIYXNoQ29kZVByb3ZpZGVyCEhhc2hTaXplBEtleXMGVmFsdWVzAAADAwAFBQsIHFN5c3RlbS5Db2xsZWN0aW9ucy5JQ29tcGFyZXIkU3lzdGVtLkNvbGxlY3Rpb25zLklIYXNoQ29kZVByb3ZpZGVyCOxROD8BAAAACgoLAAAACQMAAAAJBAAAABADAAAAAQAAAAgI2QcAABAEAAAAAQAAAAkFAAAABAUAAAAhU3lzdGVtLkdsb2JhbGl6YXRpb24uRGF5bGlnaHRUaW1lAwAAAAdtX3N0YXJ0BW1fZW5kB21fZGVsdGEAAAANDQwAkOq4qG3LiAAQOyeuKMyIAGjEYQgAAAAL</BA>
   </MS>
 </Obj>