Skip to content

Commit

Permalink
Fix RDPWinst.exe -w in first time
Browse files Browse the repository at this point in the history
  • Loading branch information
sashaqwert committed May 16, 2022
1 parent 98ffa24 commit 8673ae5
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 8673ae5

Please sign in to comment.