w10install/scripts/disable-autologon.cmd
Michael H.G. Schmidt 09b3c6ef11 .
2021-01-10 15:49:37 +01:00

12 lines
385 B
Batchfile

@echo off
echo ####### %0 #######
echo disabling autologon for admin ...
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultDomainName /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultPassword /f
reg delete "HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon" /v DefaultUserName /f
echo ####### %0 #######