Quantcast
Channel: Microsoft Deployment Toolkit forum
Viewing all articles
Browse latest Browse all 11297

MDT 2013: Deploy a bootable Windows PE VHD with custom task sequence leaves dirty environment

$
0
0

Hello guys,

we want to deploy a Windows PE VHD to an empty machine and run our deployment through that VHD, using MDT 2013.
If we deploy that VHD through my custom scripts and a custom task sequence it works fine, the first Windows7 VHD deployment using the Windows PE VHD works fine too, but if we try to deploy another Windows 7 VHD to the machine, it returns a dirty environment.

Here are the steps I took:
First I made a Windows PE VHD from a WIM file.
Using a custom task sequence (I disabled the "Install Application" step) in which I run certain scripts we successfully deploy the VHD to the empty machine.

The first script cleans the disk, creates a primary partition formats the partition, assigns letter C to it and sets it as active.
I then copy the VHD file from a network share to the c: partition using another script. After that I attach the VHD and assign the letter V to it. Set "bcdboot v:\windows /s c:" so we can boot from the VHD. After that I detach the VHD again and the task sequence is finished. Note that I only use my own scripts to do that, without using any other steps.

To deploy the VHD we boot from a WINPE DVD and select the task sequence to deploy the WINPE VHD, it runs without returning any errors. Upon clicking "finish" the PC reboots and successfully enters the Windows PE routine from the now bootable VHD.
I select a basic "Deploy to Client VHD" Task sequence with a Windows7 WIM file to deploy the OS VHD. This works without problems, I can boot into that OS and everything works. But if I try to deploy another Windows7 VHD to the same machine using another"Deploy to Client VHD" Task sequence, it says it found an ongoing Deployment and asks whether I want to skip it or not (the Dirty Environment error message)

I have checked if the MININT and _SMSTS folders get deleted and they do get removed after the Windows PE VHD task sequence, the only thing that remains on the PC are the logs. I already checked, if it is the Win7 VHDs that causes the problem, negative. I tried to have the "post apply" Task sequence step added to the WinPE VHD task sequence, didn`t help either.

EDIT: If I try to use the Client Deploy to VHD task sequence to deploy the WINPE VHD it just keeps rebooting into WINPE, loads the "Microsoft solution accelerators screen and then reboots again. I don`t know what causes that problem either.

I am really desperate right now, can someone help me to solve that problem?

Best regards,
Daniel




Viewing all articles
Browse latest Browse all 11297

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>