Enable MDT Auto logon with Easy Steps

Prajwal Desai
Posted by Prajwal Desai
How to Enable MDT Auto Logon

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.

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.

Share This Article
Prajwal Desai
Posted by Prajwal Desai
Follow:
Prajwal Desai is a Microsoft MVP in Intune and SCCM. He writes articles on SCCM, Intune, Windows 365, Windows Server, Windows 11, WordPress and other topics, with the goal of providing people with useful information.
Leave a comment