Skip to content

SCCM 2007 OSD Task Sequence Script Location

Featured Replies

Hi there,

 

I was wondering if anyone knows where the script is that runs the task "Restart in Windows PE" as part of the OS Deployment in SCCM 2007 R2. I am currently using MDT 2010 and can see that there are scripts in C:\Program Files\Microsoft Deployment Toolkit\Templates\Distribution\Scripts

on the SCCM server. However I can't seem to find the one that relates to the "Restart in Windows PE".

 

The reason I ask is that we are deploying Win7 to machines that have McAfee encryption and I need to edit this script to allow me to run a command to restore the MBR just before the PC reboots after applying PE.

 

Many thanks,

 

Ian

I think this document should help you to solve this problem. You don't need to modify the MDT scripts. Just create a package and run the commands from there before the restart.

  • Author

Thanks for the reply Peter33,

 

I was aware of that document, and I kind of managed to get the process to work by having a task that runs a VB Script on a continuous loop in the background just before the "Restart in Windows PE" task. The script would keep running the command to reset the MBR. However on the odd occasion this would fail and I would end up with an unbootable HDD on reboot.

 

In that document I want to try and achieve what they are suggesting in appendix C part 2a. This would guarantee that the process would always work because I could get the command to restore the MBR to occur exactly after the WinPE image has been staged into the MBR, but before the reboot.

Well, i don't think the roboot is actually handled by a script. This TS step is not an MDT command. Anyways, the topic got discussed here and someone posted a script to fake the reboot.

  • Author

Thanks Peter, I will take a look at the link.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.