Make changes to WDS/SCCM boot file to run script before Task Sequence:


I recently had a customer who couldn’t re image machines because of some hidden partition stuff on manufacture preloaded machines. It actually turned out that a couple of files needed to be removed prior to running the TS. So we added a  script to be run prior to the launch of the TS, to get rid of these files.

Its not like its a big secret, how you do this, as it is in the WinPE.chm but I thought just make small description of the steps anyhow.

1. MountRW SCCM boot.wim with ImageX

ImageX /MountRW C:\boot.wim 1 C:\mount

2. Open C:\mount\windows\system32\winpeshl.ini

3. Change it to look like beneath.




4. In C:\mount\windows\system32, create PreTS.vbs with the stuff you want to execute.

5. Unmonut the changed image

– ImageX /unmount /commit C:\mount

6. On your WDS server add the changed boot.wim


You could add any number of different tasks to be executed if needed…

By | 2008-07-14T15:44:32+00:00 July 14th, 2008|OS Deployment|1 Comment

About the Author:

Michael Petersen
Twitter: @OSDeployLinkedin: Michael PetersenMicrosoft Community Contributor

One Comment

  1. Spanish grammar feelings September 20, 2014 at 6:54 - Reply

    You are so awesome! I don’t suppose I have read anything lke that before.

    So good to find another person with a few genuine thoughts on this subject.
    Really.. thank you for starting thiks up. This site is something that is required on the web, someone with a bit of originality!

    Also visit my webpage – Spanish grammar feelings

Leave A Comment