w10install/scripts/disable-autologon.cmd

12 lines
414 B
Batchfile
Raw Normal View History

2021-01-10 18:45:55 +01:00
@echo off
echo ####### %0 #######
echo disabling autologon for admin ...
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
2021-01-10 18:45:55 +01:00
echo ####### %0 #######