14 lines
534 B
Batchfile
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 #######
|
|
|