Answered Script Add to Collection from Within PXE WinPE

  • Monday, May 21, 2012 5:24 PM
     
     

    Hello folks. thanks in advance for help on this.

    We have a stable OSD environment. PXE works for both known and unknown systems. Task sequences for OSD for systems that are known go to a specific collection for deployment. Currently we have the image techs send us the system names so we can add them to the correct OSD collection for deployment.

    I want to be able to stream line that a lil better. I want to be able to script a grab of the service tag from the BIOS for the system name (i already have this script done and working), then have it take that variable and add the system name to the deployment collection. But i want to be able to do all this from within the WinPE.

    i know i can add files to the boot.wim file, so this would be a vbs or similar script file to do this. We have the PE password protected so it wont attempt to receive advertised Task Sequences until the password is entered. That gives us time to hit F8 to navigate and run the script manually.

    I understand that there are a few scripts that do this to some degree. Has someone already come across a scenario like this and/or is there a direction that i should head in

    thnx.

All Replies

  • Monday, May 21, 2012 6:14 PM
    Moderator
     
     Answered

    you can use Maik Kosters web services to do this.

    AddComputerToCollection (MacAddress, UUID, CollectionID, ComputerName, SiteCode)
    Adds a computer to the specified collection. It will also add the Computer to the SCCM Server if not already known.

    http://mdtcustomizations.codeplex.com/wikipage?title=Webservice%20-%20SCCM&referringTitle=Documentation

    and here's how to install the web service...

    Introduction To Web Services
    What is a Web Service ?, where can I get them etc ?

    How can I install some Web Services?
    Installing Web Services



    Step by Step ConfigMgr 2007 Guides | Step by Step ConfigMgr 2012 Guides | I'm on Twitter > ncbrady