Update autoupdate.bat

add: set "Network Level Authentication" in the windows registry
info: you can disable this feature by removing the two commands "call :setNLA" (line 207 and line 248)
This commit is contained in:
asmtron 2019-08-13 01:59:53 +00:00 committed by GitHub
commit c1337f0562
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ REM -------------------------------------------------------------------
REM
REM autoupdate.bat
REM
REM Automatic RDP Wrapper installer and updater // asmtron (14-08-2019)
REM Automatic RDP Wrapper installer and updater // asmtron (15-08-2019)
REM -------------------------------------------------------------------
REM Options:
REM -log = redirect display output to the file autoupdate.log
@ -204,6 +204,7 @@ echo.
set rdpwrap_installed="1"
%RDPWInst_exe% -u
%RDPWInst_exe% -i -o
call :setNLA
goto :eof
REM -------------------
@ -244,6 +245,7 @@ echo.
echo [*] Restart RDP Wrapper...
echo.
%RDPWInst_exe% -r
call :setNLA
goto :eof
REM --------------------------------------------------------------------
@ -269,6 +271,14 @@ if "%download_status%"=="-1" (
)
goto :eof
REM --------------------------------
REM Set Network Level Authentication
REM --------------------------------
:setNLA
echo [*] Set Network Level Authentication in the windows registry...
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v SecurityLayer /t reg_dword /d 0x2 /f
reg.exe add "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp" /v MinEncryptionLevel /t reg_dword /d 0x2 /f
goto :eof
:finish
echo.