Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix RDPWinst.exe -w in first time #4

Merged
merged 1 commit into from
May 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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