myITforum.com Community Forum myITforum.com Community Forum

Home  Forums  Blogs  Live Support chat  Search Articles  Wiki  FAQ  Email Lists  Register  Login  My Profile  Inbox  Address Book  My Subscription  My Forums 

Photo Gallery  Member List  Search  Calendars  FAQ  Ticket List  Log Out

All Forums RSS Feed Subscription:


  


Pre-Execution Hook Boot Media

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
  Printable Version
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Pre-Execution Hook Boot Media Page: [1]
Login
Message << Older Topic   Newer Topic >>
Pre-Execution Hook Boot Media - 9/25/2008 6:45:02 AM   
darklord12

 

Posts: 45
Score: 0
Joined: 7/23/2008
Status: offline
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.

< Message edited by darklord12 -- 9/25/2008 6:46:33 AM >
Post #: 1
RE: Pre-Execution Hook Boot Media - 9/25/2008 10:15:59 AM   
xneilpetersonx

 

Posts: 157
Score: 1
Joined: 7/18/2006
Status: offline
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

< Message edited by xneilpetersonx -- 9/25/2008 10:17:33 AM >

(in reply to darklord12)
Post #: 2
RE: Pre-Execution Hook Boot Media - 9/25/2008 6:11:46 PM   
rbennett806


Posts: 827
Score: 13
Joined: 6/14/2006
Status: offline
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

< Message edited by rbennett806 -- 9/26/2008 10:51:10 AM >

(in reply to xneilpetersonx)
Post #: 3
RE: Pre-Execution Hook Boot Media - 9/26/2008 1:29:03 AM   
darklord12

 

Posts: 45
Score: 0
Joined: 7/23/2008
Status: offline
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?


< Message edited by darklord12 -- 9/26/2008 1:37:09 AM >

(in reply to rbennett806)
Post #: 4
RE: Pre-Execution Hook Boot Media - 9/26/2008 10:50:16 AM   
rbennett806


Posts: 827
Score: 13
Joined: 6/14/2006
Status: offline
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).

(in reply to darklord12)
Post #: 5
Page:   [1]
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> Pre-Execution Hook Boot Media Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts



  
Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

0.219