You are here:   Research
  |  Login

Welcome to my blog, quickest way to find articles is usually to search for them.

Search in All Title Contents

Final Configuration for MDT 2013 Lite Touch, now with Autologon support

Nov 14 2013

Some times you want to execute a script after the MDT 2013 Task Sequence is completed, for example to cleanup any setup leftovers or to configure a user for autologon (something that MDT by default prevents).

This script will clean out any leftover C:\MININT or C:\_SMSTaskSequence folders, enable (optional) autologon with another user account, disable setup wizard for Microsoft Security Essentials (if added to the reference image) and then do a proper final reboot...

Note: For the script to work, you need to set SkipFinalSummary=YES in CustomSettings.ini (the script will check for it)

Download from:
Final Configuration for MDT 2013 Lite Touch


The Final Configuration Utility for MDT 2013 in action.

Add the script to Deployment Workbench

Adding the script is quite straightforward, just add it as an application and then call the app as your last action in the Task Sequence. In this example my MDT server is named MDT01, and my deployment share is named MDT production. For these steps I assume you have downloaded the script and extracted it to D:\Setup\Final Configuration 2013.

  1. Using the Deployment Workbench, in the MDT Production node, select the Applications node, and create a folder named ViaMonstra.
  2. Expand the Applications node, right-click the ViaMonstra folder, and select New Application, Use the following settings for the New Application Wizard.
    1. Application with source files
    2. Publisher: <blank>
    3. Application name: Final Configuration for MDT 2013
    4. Version: <blank>
    5. Language: <blank>
    6. Source Directory: D:\Setup\Final Configuration 2013
    7. Specify the name of the directory that should be created: Final Configuration for MDT 2013
    8. Command Line: cscript.exe Configure-FinalConfig.wsf
    9. Working directory: <default>

The application added to the Deployment Workbench.

Configure the task sequence to use the script

After the application is added you simply add the application as your last action in the Task Sequence. In this example I’m adding the script to my Windows 8.1 Enterprise x64 task sequence which I created in a folder (node) named Windows 8.1.

  1. Using the Deployment Workbench, in the MDT Production node, select the Task Sequences / Windows 8.1 node
  2. Right-click the Windows 8.1 Enterprise x64 task sequence, and select Properties.
  3. After the last action in the task sequence, add a new Install Application action with the following settings:
    1. Name: Final Configuration for MDT 2013
    2. Install a Single Application: Final Configuration for MDT 2013
  4. Click OK.

Application added to the task sequence

Optional configuration, enabling autologon for another user account

If you want to enable another user for autologon, simply uncomment those lines in the FinalConfig.hta file, and change the user/domain and password. If you want to logon with a local user, set domain to “.” Here is an example for a normal domain account.

    StatusArea.InnerHTML=StatusArea.InnerHTML & "<BR>" & "Enable autologon for another user account."
    oShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoAdminLogon", 1, "REG_SZ"
    oShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\AutoLogonCount", 999, "REG_SZ"
    oShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultUserName", "Johan", "REG_SZ"
    oShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultDomainName", "VIAMONSTRA", "REG_SZ"
    oShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DefaultPassword", "P@ssw0rd", "REG_SZ"
    oShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\ForceAutoLogon", 1, "REG_SZ"
    oShell.RegWrite "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon\DisableCAD", 1, "REG_DWORD"
Happy Deployment! / Johan

Deployment News

Happy deployment, and thanks for reading!

What our lawyers makes us say:

This information is provided "AS IS" with no warranties, confers no rights and is not supported by the authors or Deployment Artist.

Copyright © 2017 by Deployment Artist (the company behind deployment research). All rights reserved. No part of the information on this web site may be reproduced or posted in any form or by any means without the prior written permission of the publisher.

Shorthand: Don't pass off our work as yours, it's not nice.

Blog Archive


Where you can meet us!

Live Stream Recordings
ConfigMgr 1806 and W10 OSD

5 Days - Mega Geek Week 
(multiple classes, ConfigMgr, OSD etc.)
- Johan Arwidmark, Mikael Nystrom...
Jun 10, 2019, Chicago, IL, US

4 Days - Windows 10 OSD Classes
- Johan Arwidmark
May 20, 2019, San Diego, CA, US
Jun 17, 2019, Culemborg, NL
Jul 8, 2019, Phoenix, AZ, US

5 days - ConfigMgr Classes
- Johan Arwidmark and Kent Agerlund
Apr 8, 2019, Chicago, IL, US
Apr 22, 2019, Houston, TX, US

Video-based trainings

MDT, Windows 10 and ConfigMgr Books

Contact Info