*(5/5/2011) Stumbled across some code I was playing with awhile ago to make this error easier to get by. I haven’t had time to reproduce this error to see if the following code fixes it, but if you’d like, you can try this code experimentation. Essentially I wanted to make this problem easier to deal with by allowing for a script to automatically clear the directories. I was later going to expand on re-running the script without a reboot after that too but never got that far. I’m not even sure if the current code works. But I figure if anyone wants to try… Here it is:
Open up LiteTouch.wsf in the Scripts directory. Search for
ElseIf oEnvironment.Item("LTISuspend") <> "" Then
Add the following code (please use ONLY for testing as it is completely untested)
'MM Dim resp resp = oShell.Popup("Task suspended." & VbNewLine & oEnvironment.Item("LTISuspend") & VbNewLine & VbNewLine & "MM: This problem occurs if LiteTouch detects an incomplete or corrupt state within MININT/_SMSTaskSequence folders. Click YES to delete any MININT/_SMSTaskSequence folders to resolve this on next reboot.", 0, "Suspended", 4) If resp = 6 Then 'a to i For count = 97 to 105 RunAndLog "rd " & Chr(count) & ":\_SMSTaskSequence /s /q", false RunAndLog "rd " & Chr(count) & ":\MININT /s /q", false Next End If 'MM
Recompile the boot CDs and try it out the next time you have a regular CD encountering this error.
*(1/19/2010) Please note, after further investigation the problem actually lies much deeper and would appear to take a large amount of analyzing to figure out a cure to this. For now, the best way is to hit F8 when the error occurs, and run the following:
rd C:\_SMSTaskSequence /s /q
rd C:\MININT /s /q
Other drive letters may have to be substituted for the above commands. If I find anything new out, I will post it here*
The task sequence has been suspended.
LiteTouch has encountered and Environment Error (Boot into WinPE!)
Look familiar? I’m surprised of the few search results on such an error. The problem occurs because MDT will often not clean up MININT and _SMSTaskSequence on C drive. Don’t believe me? Hit F8 after loading your windows 7 PE disk to bring up a command prompt and navigate to C. If that turns out to NOT be the case you should adjust the BIOS order to have harddrive loaded first. If it persists, another solution is to run diskpart and clean the drive from the console.
A solution to prevent this, rather than a workaround? Modify your task sequence to include a couple commands to clear those directories. Right click your task sequence, go to properties then the Task Sequence Tab. Click add and create two ‘Run Command Line’ tasks. Place them in an appropriate area.
Have one with:
If Exist C:\_SMSTaskSequence\nul rd C:\_SMSTaskSequence /s /q
The other with:
If Exist C:\MININT\nul rd C:\MININT /s /q
‘\nul’ is not required however it wont hurt. If you end up using these in a batch file though, then you will want those. When batch files check for the existence or not of a directory, using ‘if exist’ or ‘if not exist’, if the directory is being checked for on a Windows system then the batch file needs to use ‘\NUL’