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

No longer work in windows 11 last update #6

Closed ehsanwwe closed 2 months ago

ehsanwwe commented 2 months ago

hi guys i test it in 2 PCs from last week i has been trouble with multiple remote desktop after last week Microsoft update

Windows 11 pro Version : 10.0.22631 build :22631

fabianosrc commented 2 months ago

Hi, thanks for reporting this bug, I will fix it.

-- Fabiano Silva


From: Ehsan Moradi @.> Sent: Tuesday, August 6, 2024 3:38 AM To: fabianosrc/TermsrvPatcher @.> Cc: Subscribed @.***> Subject: [fabianosrc/TermsrvPatcher] No longer work in windows 11 last update (Issue #6)

hi guys i test it in 2 PCs from last week i has been trouble with multiple remote desktop after last week Microsoft update

Windows 11 pro Version : 10.0.22631 build :22631

— Reply to this email directly, view it on GitHubhttps://github.com/fabianosrc/TermsrvPatcher/issues/6, or unsubscribehttps://github.com/notifications/unsubscribe-auth/ASUIWHMER33QCP52PLI42QLZQBVP5AVCNFSM6AAAAABMBUOGXOVHI2DSMVQWIX3LMV43ASLTON2WKOZSGQ2TAMBWHE3TMOI. You are receiving this because you are subscribed to this thread.Message ID: @.***>

AlimFreight commented 2 months ago

Hey @fabianosrc , any news about the fix?

fabianosrc commented 2 months ago

Hi guys. Sorry but I'm still trying to identify where the problem is. I ran on a Windows 11 23H2 22631.4037 64-bit and it works fine win11lab_on_hyper-v

fabianosrc commented 2 months ago

You may need to run the script again after windows updates, as the update may overwrite the patched file.

ehsanwwe commented 2 months ago

Fabiano tnx , its work like a charm.

AlimFreight commented 2 months ago

I am getting this:

PS C:\Users\Yan\Downloads> .\TermsrvPatcher.ps1
At C:\Users\Yan\Downloads\TermsrvPatcher.ps1:40 char:60
+ ... script type="application/json" id="client-env">{"locale":"en","featur ...
+                                                             ~~~~~
Unexpected token ':"en"' in expression or statement.
At C:\Users\Yan\Downloads\TermsrvPatcher.ps1:40 char:65
+ ... cript type="application/json" id="client-env">{"locale":"en","feature ...
+                                                                 ~
Missing argument in parameter list.
At C:\Users\Yan\Downloads\TermsrvPatcher.ps1:40 char:864
+ ... ite_metered_billing_update","ignore_hidden_in_quote_reply"]}</script>
+                                                                 ~
The '<' operator is reserved for future use.
At C:\Users\Yan\Downloads\TermsrvPatcher.ps1:251 char:84
+ ... tion/json" data-target="react-partial.embeddedData">{"props":{"docsUr ...
+                                                                 ~
Unexpected token ':' in expression or statement.
At C:\Users\Yan\Downloads\TermsrvPatcher.ps1:251 char:95
+ ... ":{"docsUrl":"https://docs.github.com/get-started/accessibility/keybo ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Unexpected token ':"https://docs.github.com/get-started/accessibility/keyboard-shortcuts"' in expression or statement.
At C:\Users\Yan\Downloads\TermsrvPatcher.ps1:251 char:168
+ ... s.github.com/get-started/accessibility/keyboard-shortcuts"}}</script>
+                                                                 ~
The '<' operator is reserved for future use.
At C:\Users\Yan\Downloads\TermsrvPatcher.ps1:275 char:254
+ ... ink Button--medium Button d-lg-none color-fg-inherit p-1">  <span cla ...
+                                                                 ~
The '<' operator is reserved for future use.
At C:\Users\Yan\Downloads\TermsrvPatcher.ps1:318 char:45
+             <ul class="list-style-none f5" >
+                                             ~
Missing file specification after redirection operator.
At C:\Users\Yan\Downloads\TermsrvPatcher.ps1:532 char:13
+       CI/CD &amp; Automation
+             ~
The ampersand (&) character is not allowed. The & operator is reserved for future use; wrap an ampersand in double
quotation marks ("&") to pass it as part of a string.
At C:\Users\Yan\Downloads\TermsrvPatcher.ps1:656 char:45
+             <ul class="list-style-none f5" >
+                                             ~
Missing file specification after redirection operator.
Not all parse errors were reported.  Correct the reported errors and try again.
    + CategoryInfo          : ParserError: (:) [], ParseException
    + FullyQualifiedErrorId : UnexpectedToken
fabianosrc commented 2 months ago

@AlimFreight what's your PowerShell version? and your OS version?

fabianosrc commented 2 months ago

I'll be working on some improvements soon. I'm not very good at programming yet.

AlimFreight commented 2 months ago

@AlimFreight what's your PowerShell version? and your OS version? Version

5.1.22621.1037 8m

OS Name: Microsoft Windows 11 Enterprise OS Version: 10.0.22624 N/A Build 22624

fabianosrc commented 2 months ago

@AlimFreight what's your PowerShell version? and your OS version? Version

5.1.22621.1037 8m

OS Name: Microsoft Windows 11 Enterprise OS Version: 10.0.22624 N/A Build 22624

Please wait. I need to check a few things.

fabianosrc commented 2 months ago

@AlimFreight look at this: https://youtu.be/K_NWM-fRkPQ

AlimFreight commented 2 months ago

Thank you so much; the script works perfectly! The issue was with the file structure, which somehow got corrupted during downloading.