Skip to content

Add console session (/admin) licensing option #715

@awakecoding

Description

@awakecoding

Add the equivalent of the mstsc /admin (formerly /console) option which lets you connect to an RDP server for "administrative purposes", which allows you for a single session without a valid licensing server. New installations of Windows Server emit temporary licenses for 180 days, so this normally useful when those stop being emitted, and you still need to connect with RDP.

In FreeRDP, the internal setting name is "ConsoleSession", I suggest we use the same. Protocol-wise, it affects the GCC client cluster data this way:

Image

The GCC client cluster data structure is defined here: https://learn.microsoft.com/en-us/openspecs/windows_protocols/ms-rdpbcgr/d68c629f-36a1-4a40-afd0-8b3e56d29aac

IIRC, the trick is that the REDIRECTED_SESSIONID_FIELD_VALID flag is set, but the redirectSessionID value is 0, and this is how the server knows it's a special console session / admin session.

In the RDP ActiveX, the internal property name is ConnectToAdministerServer

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions