This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| .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". |