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