Skip to content

Commit

Permalink
Merge pull request #4 from sashaqwert/MOD
Browse files Browse the repository at this point in the history
Fix RDPWinst.exe -w in first time
  • Loading branch information
sebaxakerhtc authored May 16, 2022
2 parents 98ffa24 + 8673ae5 commit f16223d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src-installer/RDPWInst.dpr
Original file line number Diff line number Diff line change
Expand Up @@ -1106,11 +1106,7 @@ begin

Writeln('[*] Terminating service...');
AddPrivilege('SeDebugPrivilege');
//KillProcess(TermServicePID);
WinExec('cmd /c net stop UmRdpService /y', 1); //fix for Hyper-V VMs
Sleep(1000);
WinExec('cmd /c net stop termService /y', 1);
Sleep(1000);
ExecWait('cmd /c net stop termService /y');

if Length(ShareSvc) > 0 then
for I := 0 to Length(ShareSvc) - 1 do
Expand Down

0 comments on commit f16223d

Please sign in to comment.