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:


  


giving computer a name during task sequence

 
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 >> giving computer a name during task sequence Page: [1]
Login
Message << Older Topic   Newer Topic >>
giving computer a name during task sequence - 11/11/2008 9:27:18 AM   
nickmo

 

Posts: 68
Score: -2
Joined: 8/25/2008
Status: offline
Can anyone provide a quick suggestion on how to have an admin (who is imaging a bare metal PC) give the computer a name rather than allowing a random name to be generated?  I have ideas myself with having a vbscript prompt the admin and then use the value to set a task sequence variable, but I'm not sure if that is the best method or practice.

_____________________________

Nick Moseley - SMS/SCCM Administrator and wearer of too many hats
Post #: 1
RE: giving computer a name during task sequence - 11/11/2008 10:05:15 AM   
anyweb


Posts: 34
Score: 2
Joined: 10/20/2008
From: Sweden
Status: offline
you can use computer Association to pull in the guid or mac address of the computer, give it a computername and import it into a deployment collection

here's a guide of how that works > http://www.windows-noob.com/forums/index.php?s=&showtopic=570&view=findpost&p=829

the computer will end up getting installed with the OS of your choice and with the computername of your choice.

(in reply to nickmo)
Post #: 2
RE: giving computer a name during task sequence - 11/11/2008 10:12:42 AM   
dmarinoff

 

Posts: 9
Score: 0
Joined: 4/21/2008
Status: offline
I don't know how to have the TS prompt for a name, but if you wanted to use serial number add this line to the customsettings.ini.

ComputerName=%SerialNumber%

David

(in reply to nickmo)
Post #: 3
RE: giving computer a name during task sequence - 11/11/2008 10:51:18 AM   
MhermanNBME

 

Posts: 78
Score: 3
Joined: 4/4/2007
Status: offline
I use a script to bring up an input box, you can either make a package out of it, or map a network drive in the task sequence.  I just put a simple run command line in the beginning of the task sequence (after restart in windows pe).  I also checked the option to continue on error.

Here is the run command line:
"cscript z:\path\setname.vbs"

Here is the setname.vbs:
On Error Resume Next
Set env = CreateObject("Microsoft.SMS.TSEnvironment")
env("OSDComputerName") = InputBox("Enter Computername:","Computer Name",env("OSDComputerName"),50,50)

(in reply to dmarinoff)
Post #: 4
RE: giving computer a name during task sequence - 11/11/2008 10:57:21 AM   
xneilpetersonx

 

Posts: 168
Score: 1
Joined: 7/18/2006
Status: offline
You can add a script to the task sequence that will gather the information and set the OSDComputerName variable. I have chosen to use an .HTA to accomplish this. Here is an example with just the realavant computer name code.

Start Code -------------------------------------------------------------------->

<html>
<head>
<title>Window Title</title>

<HTA:APPLICATION
   APPLICATIONNAME="OSD GATHER"
   SCROLL="no"
   SINGLEINSTANCE="yes"       
   WINDOWSTATE="normal"
   BORDER="thin"
>

</head>

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


Sub ButtonFinishClick

   SET env = CreateObject("Microsoft.SMS.TSEnvironment")
   env("OSDComputerName") = computername.Value

 
   window.Close
End Sub

</script>

<body>

<p>Computer Name:</p>


<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>

End Code------------------------------------------------------------------->

Hope that helps.

neilp

(in reply to nickmo)
Post #: 5
RE: giving computer a name during task sequence - 11/11/2008 11:00:15 AM   
MhermanNBME

 

Posts: 78
Score: 3
Joined: 4/4/2007
Status: offline
As far as I know, by default, the sccm pe doesn't support hta's so you'll have to rebuild your pe image. That's the only reason I did a vbscript rather than hta.

(in reply to xneilpetersonx)
Post #: 6
RE: giving computer a name during task sequence - 11/11/2008 11:07:35 AM   
xneilpetersonx

 

Posts: 168
Score: 1
Joined: 7/18/2006
Status: offline
Good Point!! Just to note if you do have the Microsoft Deployment Toolkit integrated I believe you can create a custom Boot Image from there that will have .HTA support. This would be done by simply right clicking on "Boot Images" in the CM console, and then clicking "Create Boot Image using Microsoft Deployment".

neilp

(in reply to MhermanNBME)
Post #: 7
RE: giving computer a name during task sequence - 11/11/2008 11:10:17 AM   
xneilpetersonx

 

Posts: 168
Score: 1
Joined: 7/18/2006
Status: offline
This may provide some guidance on modifying WinPE if not using MDT.

http://technet.microsoft.com/en-us/library/cc709665.aspx

neilp

(in reply to xneilpetersonx)
Post #: 8
RE: giving computer a name during task sequence - 11/21/2008 2:32:33 AM   
hpaul

 

Posts: 40
Score: 0
Joined: 5/3/2002
Status: offline
You can use wsname.exe
Add a runonce to your sysprep call wsname.exe to change the name of the machine. I do it from a text fill, it looks for the mac address and renames the machine to whatever I want;
0022334488=Machine2

I do it from a workgroup and then conect to a domain within TS.

Have a look at wsanme it has a lot of options

(in reply to anyweb)
Post #: 9
RE: giving computer a name during task sequence - 11/21/2008 10:21:04 AM   
xneilpetersonx

 

Posts: 168
Score: 1
Joined: 7/18/2006
Status: offline
I've put a few blogs up detailing my custom scripts which allow for on the fly computer naming plus many other useful "things". It is my first "technical" document and could probably use some editing, but everything is there.

http://myitforum.com/cs2/blogs/xneilpetersonx/default.aspx

Let me know if you find it useful.

neilp

(in reply to nickmo)
Post #: 10
RE: giving computer a name during task sequence - 11/25/2008 3:36:57 AM   
cpierer

 

Posts: 10
Score: 0
Joined: 11/25/2008
Status: offline
I do it like this, to provide a name to my Computers:

Just prestage the PCs in active directory and make them to mangaed pcs. This means you should anter a GUID.
The GUID must not be the real GUID it is possible to enter it like this: 00000000000000000000<MAC> this should be 32 digits.
Next step is to import the computer settings to sccm like anyweb told you.
Now you just have to insert Computername=%MachineName% into you unattend or sysprep file.

hth

(in reply to xneilpetersonx)
Post #: 11
Page:   [1]
All Forums >> [Management Products] >> System Center Products >> System Center Configuration Manager >> giving computer a name during task sequence 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.281