In this post I will cover the steps to enable MDT auto logon. I am often asked about how to enable auto logon after deployment in MDT and I am going to shed some light on it in this post.
First of all Microsoft don’t recommended to use Auto-logon. However some organizations, for practical reasons, on their servers need to use auto-logon when the deployment is done with MDT.
By default Microsoft Deployment Toolkit does not allow to enable auto-logon, and disable it when the installation is finished, except if you edit configuration files.
About MDT Auto Logon
Auto Logon specifies the account to use to log on to a computer automatically. When you configure AutoLogon, the OS will skip the user account creation phase during OOBE. This is a change from previous versions of Windows. In addition, the account creation phase during OOBE is skipped in all versions of Windows.
AutoLogon credentials are deleted from the unattended installation answer file after Windows Setup is complete.
Note – If Auto-logon is enabled, anyone can gain physical access to the PC and will have complete control over the computer. Hence it is for this reason that MDT AutoLogon is automatically disabled during install phase.
Enable MDT Auto logon
Before you enable MDT Auto login, ensure you have Notepad++ installed on the computer. You would also need access to the MDT installation files. Go to your MDT deployment Share local path, and browse the Scripts folder.
Look for the file named LTICleanup.WSF and edit it with Notepad++.
From the LTICleanup.WSF file, search for Autologon and go to the line 126.
To enable MDT Auto logon, set the values as shown in the below screenshot. Change AutoAdminLogon value from 0 to 1. You must also change the number of AutoLogonCount. In our example, we have chosen 3 as the value. This means after three restarts, the auto logon will be disabled.
Note – After making the above changes if you notice that Auto Logon is not working, ensure you update the deployment share after this modification.