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.

Install and Update Third Party Applications with Patch My PC
Install and Update Third Party Applications with Patch My PC

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.

Enable MDT Auto logon
Enable MDT Auto logon

Look for the file named LTICleanup.WSF and edit it with Notepad++.

Enable MDT Auto logon
Enable MDT Auto logon

From the LTICleanup.WSF file, search for Autologon and go to the line 126.

Enable MDT Auto logon
Enable MDT Auto logon

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.

Enable MDT Auto logon
Enable MDT Auto logon

Note – After making the above changes if you notice that Auto Logon is not working, ensure you update the deployment share after this modification.

Still Need Help?

If you need further assistance on the above article or want to discuss other technical issues, check out some of these options.

Prajwal Desai

Prajwal Desai is a technology expert and 10 time Dual Microsoft MVP (Most Valuable Professional) with a strong focus on Microsoft Intune, SCCM, Windows 365, Enterprise Mobility, and Windows. He is a renowned author, speaker, & community leader, known for sharing his expertise & knowledge through his blog, YouTube, conferences, webinars etc.