IronRDP icon indicating copy to clipboard operation
IronRDP copied to clipboard

Add console session (/admin) licensing option

Open awakecoding opened this issue 9 months ago • 0 comments

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

awakecoding avatar Mar 24 '25 15:03 awakecoding