w10install/scripts/disable-autologon.cmd

12 lines
385 B
Batchfile
Raw Normal View History

2021-01-10 15:49:37 +01:00
@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 #######