What's New

MDT 2013 – Configuring AutoLogon

One of the most popular requests I get from clients during a project is "Can we configure autologon for a few of our devices while we're at it?" My answer is always, "Of course!" because...well...I was taught that the customer is always right. Typically, the devices in question are things like kiosks and point-of-sale machines but there are also plenty of other scenarios that might require autologon. But how do we accomplish this? By default MDT cleans up all of the autologon entries it creates during the deployment process so there are a few changes we will have to make to that cleanup process. The script that MDT calls to perform the cleanup is LTICleanup.wsf and below is the code you will need to make the magic happen. All you guys have to do is copy and paste my revised code and follow the instructions below! I have also included a couple of videos to help you guys understand how it works. Enjoy! Get the revised code here If you have any issues please contact me @ deploymentoasys@gmail.com


1) Make a backup copy of LTICLeanup.wsf and put it somewhere safe

2) Open the original LTICLeanup.wsf script(preferably in Notepad++) and find the comment section called “Clear the AutoLogon registry keys”. It should be on/near line 128.

3) Highlight the existing code in that section and paste my revised code so that it overwrites what was there.


You can also just replace the original script w/ my LTICleanup.wsf script instead of following steps 2 & 3

4) Save the script and open the Deployment WorkBench.

5) Right-click the Deployment Share name, choose properties, and go to the Rules tab.

6) Under “Priority=Default” you should see “Properties=MyCustomProperty”

7) Enter the following properties:


8) In the [Default] section, enter the properties and their respective values


If you are configuring autologon for a Local account, use a period for MyDefaultDomainName.

For example:





13 Comments on MDT 2013 – Configuring AutoLogon

  1. your script can not download, can you show me again? thank you

  2. No offense but this really isn’t all that helpful if I have to re-format your completely mangled PDF file.

  3. Hi,
    Could you please post the script in a format other than pdf?
    The text is kind of messed up.

  4. Thanks for your script! Has anyone run into any issues? My autologon doesn’t always work.

  5. Can you pass the username and password via the UDI as a prompt?

    • You can create a custom wizard pane for the MDT Wizard that prompts for the credentials but unfortunately have not personally tested the same concept with UDI for SCCM deployments as of yet.

  6. Jonathan R. // June 29, 2015 at 11:42 am // Reply

    Exactly what I was looking for, nicely explained.
    Could you please upload the revised code again (note the entire script), Thanks.

    • Jonathan, I really appreciate the feedback. You can get the the entire revised script at the link below. If you need just the code snippet that controls the autologon configuration please let me know and I will upload it.


      • Jonathan R. // July 2, 2015 at 2:06 pm //

        I saw the link right after I submitted the comment thanks for your answer. Btw, if I set a default value for the autologonpersist in the default section of the custom.ini and then set a task sequence step to update it for certain ts, will it work (use the updated value)?

      • Absolutely. The custom property “AutoLogonPersist” is a “Last value wins” property in this case so if you specify a default value in customsettings.ini and then specify a different value in multiple task sequences, the last value should always win. I hope that helps!

  7. Thank you for a great article. Could you please upload the script again? Gives 404 error

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

%d bloggers like this: