w10install/scripts/disable-autologon.cmd
Michael H.G. Schmidt de9700e31f .
2021-01-10 18:45:55 +01:00

12 lines
396 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 #######