I have a custom XP to Window7 "migration" written in MDT 2010 that works like a charm. However it does not work in MDT 2012. I start with a Replace task sequence that I have customized to do a USMT to the server, then drop a local WinPE that reboots into
a different NewComputer task. The User Exit analyzes that state of the computer, looking to files, etc, to determine which TaskSequnceID to select, 2 is the Replace and 3 is the NewComputer. I have one userexit.vbs that contains all the logic and it is 100%
successful at determining the phase and selecting the right task sequence number under MDT 2010. However it does not work under 2012. This is also a move from PE 3 to PE 4 in case that matters.
It finds the _SMSTaskSequence on the drive after the reboot and this auto-selects the wrong task. It appears that the end of task sequence 2, Replace, does not clean up after itself before it reboots. How do I get it to clean up and not leave the tsenv.dat
pointer file behind when it reboots into the local WinPE?
I can post my task sequences and custonsettings.ini with userexit.vbs if need be, but as the user exit is over 1000 lines it take a lot of space. After a full day of troubleshooting I am convinced the root is this failure to clean up prior to the reboot.
I need to also add that in the unattend file for the WinPE I have a VBScript that is called prior to the litetouch engine and it is not being run either. It is as if rebooting to the local PE doesn't even read the unattend.xml in the root of the WinPE like it did under PE3 and MDT 2010. Is it possible that WinPE 4 is not reading the unattend, or needs it to be in a different "format" somehow?
"Anything worth doing is worth over doing." Heinlein