thinclient
This commit is contained in:
parent
8786f3c4f7
commit
2dd374a011
1
tools/.gitignore
vendored
1
tools/.gitignore
vendored
@ -13,4 +13,5 @@
|
|||||||
!prompt-user.exe
|
!prompt-user.exe
|
||||||
!SFTA.exe
|
!SFTA.exe
|
||||||
!minibrowser.exe
|
!minibrowser.exe
|
||||||
|
!thinclient.exe
|
||||||
|
|
||||||
|
34
tools/disable-thinclient.cmd
Normal file
34
tools/disable-thinclient.cmd
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
@echo off
|
||||||
|
set TOOLS=c:\tools
|
||||||
|
set THINUSER=THINCLIENT
|
||||||
|
|
||||||
|
set "FOLDER=%USERPROFILE%"
|
||||||
|
for /D %%D in ("%FOLDER%") do (
|
||||||
|
set "PARENT=%%~dpD"
|
||||||
|
)
|
||||||
|
|
||||||
|
echo ####### %0 #######
|
||||||
|
|
||||||
|
echo Changing shell to explorer.exe ...
|
||||||
|
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
|
||||||
|
/v Shell /t REG_SZ /d "explorer.exe" /f 2>/nul
|
||||||
|
|
||||||
|
echo Deleting user %THINUSER% ...
|
||||||
|
net user %THINUSER% /DELETE
|
||||||
|
%TOOLS%\deltree %PARENT%%THINUSER%
|
||||||
|
|
||||||
|
echo Disabling Auto Logon for user %THINUSER% ...
|
||||||
|
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
|
||||||
|
/v AutoAdminLogon /t REG_SZ /d "0" /f 2>/nul
|
||||||
|
|
||||||
|
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
|
||||||
|
/v DefaultUsername /f 2>/nul
|
||||||
|
|
||||||
|
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
|
||||||
|
/v DefaultPassword /f 2>/nul
|
||||||
|
|
||||||
|
echo.
|
||||||
|
echo Please REBOOT NOW.
|
||||||
|
echo.
|
||||||
|
|
||||||
|
echo ####### %0 #######
|
@ -1,6 +0,0 @@
|
|||||||
@echo off
|
|
||||||
|
|
||||||
:RDPLOOP
|
|
||||||
start /WAIT mstsc.exe
|
|
||||||
goto :RDPLOOP
|
|
||||||
|
|
@ -1,3 +0,0 @@
|
|||||||
Set LogonScript = CreateObject("WScript.Shell")
|
|
||||||
LogonScript.Run "%SystemDrive%\tools\logonalt.cmd", 0, False
|
|
||||||
|
|
@ -1,29 +1,29 @@
|
|||||||
@echo off
|
@echo off
|
||||||
set TOOLS=c:\tools
|
set TOOLS=c:\tools
|
||||||
set RDPUSER=RDP
|
set THINUSER=THINCLIENT
|
||||||
set RDPPASS=a024b1b5f67a4866af17e5fdd1168b7d
|
set THINPASS=a024b1b5f67a4866af17e5fdd1168b7d
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
||||||
|
|
||||||
echo Changing shell to MSTSC.EXE ...
|
echo Changing shell to THINCLIENT.EXE ...
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
|
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
|
||||||
/v Shell /t REG_SZ /d "cmd.exe /C %TOOLS%\logonalt.vbs" /f 2>/nul
|
/v Shell /t REG_SZ /d "cmd.exe /C %TOOLS%\logonalt.vbs" /f 2>/nul
|
||||||
|
|
||||||
echo Creating user %RDPUSER% ...
|
echo Creating user %THINUSER% ...
|
||||||
net user %RDPUSER% %RDPPASS% /ADD
|
net user %THINUSER% %THINPASS% /ADD
|
||||||
|
|
||||||
echo Activating Auto Logon for user %RDPUSER% ...
|
echo Activating Auto Logon for user %THINUSER% ...
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
|
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
|
||||||
/v AutoAdminLogon /t REG_SZ /d "1" /f 2>/nul
|
/v AutoAdminLogon /t REG_SZ /d "1" /f 2>/nul
|
||||||
|
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
|
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
|
||||||
/v DefaultUsername /t REG_SZ /d "%RDPUSER%" /f 2>/nul
|
/v DefaultUsername /t REG_SZ /d "%THINUSER%" /f 2>/nul
|
||||||
|
|
||||||
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
|
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
|
||||||
/v DefaultPassword /t REG_SZ /d "%RDPPASS%" /f 2>/nul
|
/v DefaultPassword /t REG_SZ /d "%THINPASS%" /f 2>/nul
|
||||||
|
|
||||||
echo.
|
echo.
|
||||||
echo Please REBOOT NOW
|
echo Please REBOOT NOW.
|
||||||
echo.
|
echo.
|
||||||
|
|
||||||
echo ####### %0 #######
|
echo ####### %0 #######
|
6
tools/thinclient.cmd
Normal file
6
tools/thinclient.cmd
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
@echo off
|
||||||
|
|
||||||
|
:THINLOOP
|
||||||
|
start /WAIT thinclient.exe
|
||||||
|
goto :THINLOOP
|
||||||
|
|
BIN
tools/thinclient.exe
Normal file
BIN
tools/thinclient.exe
Normal file
Binary file not shown.
3
tools/thinclient.vbs
Normal file
3
tools/thinclient.vbs
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
Set LogonScript = CreateObject("WScript.Shell")
|
||||||
|
LogonScript.Run "%SystemDrive%\tools\thinclient.cmd", 0, False
|
||||||
|
|
Loading…
Reference in New Issue
Block a user