Solved

Assign machine name by GUID/MAC? Sysprep/Drive Image/RIS?

Posted on 2004-03-25
1
635 Views
Last Modified: 2008-02-26
I am trying to setup a solution in which I can acheive unattended os deployments preferrably using Drive Image.

Currently I have a virtual floppy setup so the machine will reboot and connect to the Image Server and image the machine.  Once the image is complete, I have to manually rename the computer, join the domain and specify the static ip address.

I know Sysprep will do this with randomly assigned machine names; howver, our organization uses static machine names and I cannot have them randomly generated with Sysprep.  Is there a way that I can setup some type of file that will correlate the machine name/IP address to the NIC/GUID address?

What would be the easiest way to accomplish this?  Is it possible to run the image, have the machine name randomly assigned with sysprep, join the domain, but then when it finishes have something that will rename the computer to the static name and assign its ip address?

Thanks in advance for your help.
0
Comment
Question by:jkrech17
1 Comment
 
LVL 16

Accepted Solution

by:
JamesDS earned 245 total points
ID: 10694154
To automatically rename a machine after it joins the domain, you will need to write a script using WMI (Windows Management Instrumentation) Microsoft provides lots of code assistance with VBScript (or JScript) code at the scripting centre:

http://msdn.microsoft.com/library/default.asp?url=/nhp/default.asp?contentid=28001169

WMI Scripting primer part 1 of 2:

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnclinic/html/scripting02102004.asp

WMI can read the IP or MAC address and you can use that to generate the name if you like.

You can also look at the NETDOM command, described here:

http://support.microsoft.com/default.aspx?scid=%2Fservicedesks%2Fwebcasts%2Fen%2Fwc101101%2Fwct101101.asp

Cheers

JamesDS
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Recently, I had the need to build a standalone system to run a point-of-sale system. I’m running this on a low-voltage Atom processor, so I wanted a light-weight operating system, but still needed Windows. I chose to use Microsoft Windows Server 200…
A quick step-by-step overview of installing and configuring Carbonite Server Backup.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now