Pre-Execution Hook Boot Media (Full Version)

All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager



Message


darklord12 -> Pre-Execution Hook Boot Media (9/25/2008 6:45:02 AM)

I am looking at MDT right now to deploy images because I don't like to import computer using MAC or GUID expecially when I have lots of them.  I would like to be able to enter any name and the name would be automatically added to the site database before the task sequence run.
Can someone walk me through the steps on how to create a Windows PE boot cd that has the pre-execution hook capability?  Also do I have to manually create a .vbs script that prompt user for computer name or is this script template shipped with WDT SP1?  Thanks.




xneilpetersonx -> RE: Pre-Execution Hook Boot Media (9/25/2008 10:15:59 AM)

From what I can tell there a a few different ways in which to "on demand" populate the CM DB with unknown computer. I have tested both the MDT WDS PXE Filter and also the new R2 Unknown Computer capabilities.  Both seem to work well. From my limited exposure with both the R2 method apears that it may work better when deploying using both PXE and Boot media - less to set up.

As for naming mahcine - yeah I think the only method is a custom job. It is very simple - Create the following .HTA, add it to the scripts folder of your MDT package, remeber to update your DP, add a command line TS to run the following command %deployroot%\scripts\xxxxxxxx.hta

Below is some code that may help.

--------------------------------------------------------------->

<html>
<head>
<title>MMS 2009 WOOOHOOO</title>

<HTA:APPLICATION ID="oWizard" APPLICATIONNAME="" ICON="Wizard.ico"
SCROLL="no"
SELECTION="no"
INNERBORDER="no"
BORDER="normal"
SINGLEINSTANCE="no"
SYSMENU="yes"
MAXIMIZEBUTTON="no"
MINIMIZEBUTTON="no"
/>
</head>

<script language="vbscript" type="text/vbscript">

Sub ButtonFinishClick
oEnvironment.Item("COMPUTERNAME") = ComputerName.value
window.Close
End Sub

</script>

<body>
<p>Computer Name:</p><br />
<input type=text id="computerName" name=computerName size=40><br />
<button accesskey=N type=submit id=buttonFinish onclick=ButtonFinishClick ><U>F</U>inish</button>

</body>
</html>

<---------------------------------------------------------------------

I jsut copied that out of the OSD "front end" script that I am working on, I may have missed something but it should get you going.

neilp




rbennett806 -> RE: Pre-Execution Hook Boot Media (9/25/2008 6:11:46 PM)

Also check out Microsoft's UnknownSystem.hta (sample can be found here: http://www.myitforum.com/articles/19/view.asp?id=11652)...

If the first link doesn't work: http://www.myitforum.com/articles/19/view.asp?id=11652




darklord12 -> RE: Pre-Execution Hook Boot Media (9/26/2008 1:29:03 AM)

I ran the createcustombootimage.vbs from the SDK and it seems to runs fine until toward the end, I get an error message "PEIMG failed to complete the operation with status code 0×80070002".  I use the vista .wim file that comes with SCCM (C:\Program Files\Microsoft Configuration Manager\OSD\boot\i386\boot.wim). 

Rbennett806, the step that I follow from the SDK to create a custom boot image; is it a diffrent approach from the one xneilpetersonx suggested above that accomplish the same thing?




rbennett806 -> RE: Pre-Execution Hook Boot Media (9/26/2008 10:50:16 AM)

It's been a LONG while since I had to build a boot image from scratch, so take this with a grain of salt, but if I remember right, you need to first integrate MDT 2008 with your SCCM install (http://technet.microsoft.com/en-us/library/bb978395.aspx#EAAA).




Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.171875