w10install/tools/disable-autologon.cmd
Michael H.G. Schmidt 14394caa4d autologon changes
2023-02-01 21:35:19 +01:00

14 lines
534 B
Batchfile

@echo off
echo ####### %0 #######
echo disabling autologon ...
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /f 2>nul
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /f 2>nul
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /f 2>nul
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" ^
/v "AutoAdminLogon" /t REG_SZ /d 0 /f 2>nul
echo ####### %0 #######