Skip to content

Instantly share code, notes, and snippets.

View aida64x's full-sized avatar

aida64x

  • Joined May 8, 2026
View GitHub Profile
@aida64x
aida64x / Patch-GalaxyCommRdp.ps1
Created May 8, 2026 23:56
Patch GOG GalaxyCommunication.exe so it works over RDP-only sessions
<#
.SYNOPSIS
Patch GOG GalaxyCommunication.exe so it works over RDP-only sessions.
.DESCRIPTION
The service uses WTSGetActiveConsoleSessionId() to discover "the user".
On RDP-only machines that API returns either -1 (no console session) or
the console session id even when no user is logged in there. The Active
user lives in an RDP session, so the service can't find their token and
bails with "lack of user authorization info".