mirror of
https://github.com/stascorp/rdpwrap.git
synced 2025-08-22 06:13:46 -07:00
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:
parent
71289ea6e7
commit
c1337f0562
1 changed files with 11 additions and 1 deletions
|
@ -7,7 +7,7 @@ REM -------------------------------------------------------------------
|
||||||
REM
|
REM
|
||||||
REM autoupdate.bat
|
REM autoupdate.bat
|
||||||
REM
|
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 -------------------------------------------------------------------
|
||||||
REM Options:
|
REM Options:
|
||||||
REM -log = redirect display output to the file autoupdate.log
|
REM -log = redirect display output to the file autoupdate.log
|
||||||
|
@ -204,6 +204,7 @@ echo.
|
||||||
set rdpwrap_installed="1"
|
set rdpwrap_installed="1"
|
||||||
%RDPWInst_exe% -u
|
%RDPWInst_exe% -u
|
||||||
%RDPWInst_exe% -i -o
|
%RDPWInst_exe% -i -o
|
||||||
|
call :setNLA
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
REM -------------------
|
REM -------------------
|
||||||
|
@ -244,6 +245,7 @@ echo.
|
||||||
echo [*] Restart RDP Wrapper...
|
echo [*] Restart RDP Wrapper...
|
||||||
echo.
|
echo.
|
||||||
%RDPWInst_exe% -r
|
%RDPWInst_exe% -r
|
||||||
|
call :setNLA
|
||||||
goto :eof
|
goto :eof
|
||||||
|
|
||||||
REM --------------------------------------------------------------------
|
REM --------------------------------------------------------------------
|
||||||
|
@ -269,6 +271,14 @@ if "%download_status%"=="-1" (
|
||||||
)
|
)
|
||||||
goto :eof
|
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
|
:finish
|
||||||
echo.
|
echo.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue