Advertisements
BTNHD News

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

Instructions:

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.

*Note* 

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:

AutoLogonPersist,MyDefaultUserName,MyDefaultDomainName,MyDefaultPassword

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

*Note*

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

For example:

AutoLogonPersist=YES

MyDefaultUserName=gandalf

MyDefaultDomainName=.

MyDefaultPassword=minasmorgul

 

 

Advertisements

10 Comments on MDT 2013 – Configuring AutoLogon

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

  2. 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.

      https://robdtel.files.wordpress.com/2015/03/lticleanup.pdf

      • 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!

  3. 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.

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

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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s