• Home  / 

Final Configuration for Lite Touch, MDT 2008 / 2010

By arwidmark / August 13, 2008

Note: This is an archived article:

The latest version is available on deploymentresearch.com (http://deploymentresearch.com/Blog/tabid/62/EntryId/17/Final-Configuration-for-MDT-2010-Lite-Touch.aspx)

This script will clean out any Leftover MININT or Sysprep folders. Enable WindowsUpdate, Set a default domain value (read from the JOINDOMAIN environment variable), and then do a proper final reboot…

Note: You need to set SkipFinalSummary=YES in customsettings.ini (the script will check for it)

Download from:
http://www.deployvista.com/Repository/tabid/71/EntryId/51/DMXModule/396/ctl/EntryDetails/mid/396/language/sv-SE/Default.aspx

Note: the script was updated 2008-11-11 to address an issue where the domain name was not set. Thanks to Isaac Woida for finding the solution, and to Jonathan Kort for pointing it out.

Just kick of the Z-FinalConfig.wsf as your last action in the Task Sequencer. The script will kickoff the Z-FinalConfig.hta script, which will wait for Task Sequence to end, and then do the final configuration.

About the author

arwidmark

Preben Justesen - August 19, 2008

A nice enhancement of the z-reboot solution but I would suggest a couple of enhancements as I have seen z-reboot hang on some machines and I think this will do the same.

I would suggest adding a /f to the shutdown command and I secondly adding code that copies the HTA to the local drive and start it from there instead of from the server.

That have taken care of the two issues I have seen where the HTA ends up showing nothing and issues where the computer newer reboots.

arwidmark - October 21, 2008

Hi Preben,

Thanks for the tip.. the script has now been updated with your suggestions…

arwidmark - November 11, 2008

Hi Tobias,
What does your command line looks like?

Patrik - March 22, 2009

Hi Johan,
Can this be used for deploying Windows Xp ?

I can´t get the script to run. Is it supposed to kick off after sysprep?

Jeff - August 13, 2010

Hello Johan,
I’m using MDT2010 (update 1) to deploy Windows 7. As the process goes, the target computers should join our domain. There is a group policy though that delete the local admin and change the name of it. I’m testing right now and i click on “join a domain” with the correct parameters during the setup (not yet zero deployment).
So at a point the computer restarts and goes into the domain but i can’t proceed with the deployment process because the local admin is deleted.

To make a long story short: I wanna join the domain when the deployment process is totally complete. Not before that because of this group policy issue.

Do you understand my problem?

arwidmark - August 14, 2010

Check this article…

Domain Policies that break MDT 2010
http://www.deployvista.com/Home/tabid/36/EntryID/147/language/sv-SE/Default.aspx

kieranwalsh - September 21, 2010

I can’t say 100%, but it appears that this fails when I deploy IE8 in my builds of XP. This has happened on two different sites.

Does that sound plausible to you?

arwidmark - September 21, 2010

Yes, I have seen that when the IE 8 setup doesn’t have reboot supressed. The MDT Task sequencer must know about the reboot. e.g. it needs to be configured on the IE 8 application properties in the deployment workbench.

/ Johan

Xod - October 6, 2010

Hi Johan,

I have some trouble with MDT 2010 and your final config script. At the end the script runs, but keeps checking if the task sequence is running 3 times. Then it runs, cleaning up, set default domain etc. But I get an error message “Can not find script file: “C:MININTScriptsLTICleanup.wsf” before the computer reboots.

The MININT folder is not deleted. Including log files containing passwords and other sensitive stuff.

Any ideas?

Thanks
/Xod

fly - October 6, 2010

I’m having the exact same issue as Xod. I’m using Update 1, if it matters…

Xod - October 7, 2010

I´m also using MDT 2010 Update 1.

Michael K - March 29, 2011

I get “ZTI ERROR – Non-zero return code by Z-FinalConfig, rc = 0” in the BDD.LOG
Therefore I’ve changed line 117 in Z-Finalconfig.wsf from ZTIProcess=iZTIRetValue to ZTIProcess=CInt(iZTIRetValue)

arwidmark - April 20, 2011

Thanks for the update

/ Johan

Scot - October 18, 2011

I was wondering if there is a solution. I am seeing the exact same error message “Can not find script file: “C:MININTScriptsLTICleanup.wsf” with one of the deployments (not on others though). Could a workaround be to hide the minint folder with attrib instead of deleting it?

arwidmark - October 18, 2011

The vbscript (not the HTA) needs to be called is the very final actuion of the task sequence… On some systems, additional time might be needed before the cleanup starts. Also the skipfinalsummary must be set to yes.

/ Johan

Comments are closed