thinclient password must not expire

This commit is contained in:
Michael H.G. Schmidt 2024-03-15 13:08:47 +01:00
parent acf1119d26
commit b483fe8a37
1 changed files with 4 additions and 1 deletions

View File

@ -9,7 +9,10 @@ reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^
/v Shell /t REG_SZ /d "%TOOLS%\thinclient.exe" /f 2>/nul
echo Creating user %THINUSER% ...
net user %THINUSER% "" /ADD
net user %THINUSER% /passwordreq:no /passwordchg:no /ADD
echo Setting password expire date of user %THINUSER% to NEVER ...
WMIC USERACCOUNT WHERE Name='%THINUSER%' SET PasswordExpires=FALSE
echo Disabling Lockscreen function ...
reg add "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" ^