SCCM

Enable MDT Auto logon with Easy Steps

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.

Dakhama Mehdi

Hello, I’m DAKHAMA MEHDI from FRANCE. I am currently working as a MICROSOFT consultant and trainer (infrastructure, cloud and server), and systems administrator for more than 12 years. I am also a developer desktop applications. I managed lot projects of different technology (SCCM, Server, MDT, ADFS, ADRMS, Security, Microsoft 365, Intune …). I like to share my knowledge and helping everyone through my articles and applications.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button