Microsoft Deployment, ConfigMgr, Boot Media, Unknown Computers, Web Services


Did you ever read the title for a blog entry and have no idea what the posting is about?  Well, this one might fall into that category.  So first, some background information straight from the Microsoft System Center Configuration Manager 2007 documentation (http://technet.microsoft.com/en-us/library/bb633291.aspx):



To deploy an operating system to a new computer without stand-alone media that is not currently managed by Configuration Manager 2007, the new computer must be added to the Configuration Manager 2007 database prior to initiating the operating system deployment process. Although Configuration Manager 2007 can automatically discover computers on your network that have a Windows operating system installed, if the computer has no operating system installed you will need to import the new computer information by using the Import Computer Information Wizard. This wizard supports importing information about a single computer, or importing information about one or more computers from an external .csv file.


Simple enough, but not very convenient: in order to do the import you need to have the MAC address and optionally the SMBIOS UUID of the computer.  To get the MAC address of a computer that doesn’t yet have an OS, you’d probably need to turn on the computer and go into the BIOS setup, write down the 12-character hex value, then go back to the server and type it in — accurately.


So ideally we would like to automatically add the computer to the ConfigMgr database just-in-time.  Now, there are two scenarios that can be used with ConfigMgr to deploy an OS to a new computer:



  • Boot media: inserting a CD or USB key into a computer containing a ConfigMgr-customized version of Windows PE that starts the deployment process.

  • PXE boot: network booting a ConfigMgr-customized version of Windows PE that starts the deployment process.

There are different challenges in each of these scenarios, so we’ll focus on only the first one for now.  When you boot a computer using ConfigMgr boot media, a wizard will start.  The first screen don’t require that the computer be present in the ConfigMgr database, but in order to complete the wizard it must be.  So how can we hook into this wizard to do something about this?  That’s where the pre-execution hook, described at http://technet.microsoft.com/en-us/library/bb694075.aspx, comes in.


Microsoft Deployment provides a pre-execution hook script that runs a wizard of its own that will call web services to add the computer to the ConfigMgr database, as well as adding the computer to a collection for a task sequence advertisement.  After that’s complete, then the rest of the ConfigMgr boot media wizard can be completed and the task sequence starts.


So that brings us to the next challenge: setting up the web services.  See the documentation at http://technet.microsoft.com/en-us/library/bb978399.aspx for the details, although note that step #2 assumes you are using Windows Server 2008, so the steps are slightly different for Windows Server 2003.


Now, for an experiment.  Instead of just trying to explain those steps, I thought it would be useful to record a screencast of the entire configuration process.  So you can play the video below for the whole walk-through, which is about 13 minutes long.


Web Service Configuration and Troubleshooting Walkthrough


Assuming you can get this far, everything should be set up properly.  (There are some potential additional complications: if you have a larger hierarchy, you may need to verify security to connect to each site, since the computer needs to be present in the ConfigMgr database for the computer’s assigned site.)  Then you just need to create a new boot image, enabling the pre-execution hook and specifying the URL of the web services.  Yes, it’s not a trivial setup.  And yes, troubleshooting is more difficult than it should be.  We’ll work on that 🙂


Going back to the experiment, if you think screencast recordings like this are useful, please let me know and suggest what additional ones you’d like to see (and hear – adding the audio is the most difficult part).


Comments (13)
  1. Anonymous says:

    Did you ever read the title for a blog entry and have no idea what the posting is about? Well, this one

  2. Anonymous says:

    Microsoft Deployment has been released for a little over three months and we now have had enough questions

  3. Anonymous says:

    Grab this link and bookmark it as the MD team will be updating the post as the FAQ grows. Lite Touch

  4. Anonymous says:

    In case you haven’t seen this yet, here is the context. http://blogs.technet.com/msdeployment/archive

  5. Anonymous says:

    For the past couple of days I’ve been dedicating quite a large amount of my time to trying to finish

  6. Anonymous says:

    One more thing I forgot to mention – the manner in which we deploy our new systems fits very well with how Microsoft Deployment w/WDS and PXE work.

    Our techs will take a system, say to the 10th floor to deploy. All they need to do is to PXE boot to our image and specify the computer name and the OU to put it in. That’s it. Very simple and straightforward. I would love to see this sort of ‘option’ in SCCM some day.

    Finally, all the screencast recordings are very, very valuable to me and our staff. Thanks again!

  7. Anonymous says:

    " Then you just need to create a new boot image, enabling the pre-execution hook and specifying the URL of the web services"

    Where to pu specify the URL of the web service in the create a boot media wizard.

  8. Anonymous says:

    Great video Michael. Would you be able to expand on the final steps after Web server has been tested. A video showing the steps on creating the Boot media with hook, the TS that needs to created and how it’s advertised. Plus screen shots of the new PC been added to collection and the deployment proceeding.

  9. Anonymous says:

    This is a very timely post – we’re on the verge of getting 700+ new systems in over the next several months and we’re wrestling with just how to deploy an image to these bare metal systems.

    Having worked with BDD 2007 and Microsoft Deployment, we’ve finally settled on Microsoft Deployment to create and deploy the initial images to our new systems via PXE on WDS. We’ve just upgraded our SMS 2003 to SCCM 2007 and were eager to roll everything into SCCM 2007, however we still found that for ease of use and deployment, Microsoft Deployment is the way to go for us.

  10. Anonymous says:

    Yes, great video! I would also like to see the final steps after Web server has been tested. How you create the Boot media with the pre-execution hook, so that you just have to enter a computer name.

  11. aw says:

    hai, I just want to tell you that I am just very new to blogs and seriously loved this website. More than likely I’m planning to bookmark your blog post .
    You amazingly come with really good posts. Thanks a lot for sharing your blog Microsoft.

    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Woori%20Indonesia
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Sumitomo%20Mitsui%20Trust%20Bank%20Limited
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20DBS%20Indonesia
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20CTBC%20Indonesia
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Bank%20Mizuho%20Indonesia
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20BANK%20OF%20AMERICA
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20BANK%20OF%20CHINA%20LIMITED
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20CITIBANK
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20DEUTSCHE%20BANK
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20JP.%20MORGAN%20CHASE%20BANK
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20STANDARD%20CHARTERED%20BANK
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20THE%20BANGKOK%20BANK%20COMP
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20THE%20BANK%20OF%20TOKYO%20MITSUBISHI%20UFJ
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20THE%20HONGKONG%20&%20SHANGHAI%20B.C.
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20THE%20ROYAL%20BANK%20OF%20SCOTLAND%20N.V.

Comments are closed.