From ff26b4d5a711f83b3c3366c957c7cdae0f419b79 Mon Sep 17 00:00:00 2001 From: bazaev <10778732+bazaev@users.noreply.github.com> Date: Tue, 9 Jan 2024 08:00:22 +0300 Subject: [PATCH] Update RDP_patch.ps1 Start services if file already patched --- Desktop/RDP_patch.ps1 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Desktop/RDP_patch.ps1 b/Desktop/RDP_patch.ps1 index 829b74d..ecae6e6 100644 --- a/Desktop/RDP_patch.ps1 +++ b/Desktop/RDP_patch.ps1 @@ -21,6 +21,8 @@ $dll_as_text_replaced = $dll_as_text -replace $patternregex, $patch } Elseif (Select-String -Pattern $patch -InputObject $dll_as_text) { Write-Output 'The termsrv.dll file is already patch, exitting' +Start-Service UmRdpService +Start-Service TermService Exit } else {