w10install/tools/disable-autologon.cmd

14 lines
534 B
Batchfile
Raw Permalink Normal View History

2021-01-10 18:45:55 +01:00
@echo off
echo ####### %0 #######
2023-02-01 21:35:19 +01:00
echo disabling autologon ...
2023-01-19 11:34:13 +01:00
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
2023-02-01 21:35:19 +01:00
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer" ^
/v "AutoAdminLogon" /t REG_SZ /d 0 /f 2>nul
2021-01-10 18:45:55 +01:00
echo ####### %0 #######