fabianosrc / TermsrvPatcher

Patch termsrv.dll so that multiple remote users can open an RDP session on a non-Windows Server computer
MIT License
101 stars 21 forks source link

Grant full control on the termsrv.dll file #3

Closed leleb closed 7 months ago

leleb commented 9 months ago

Currently logged in user could be different from the current console user (I am using a rmm terminal logged in as a system user, not the desktop logged user) I suggest to modify: $currentUserName = (Get-WmiObject -Class Win32_ComputerSystem).UserName into $currentUserName = whoami

fabianosrc commented 9 months ago

Hi, @leleb. I changed this method to use .NET class instead of WMI object. Please try again