Solved

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

Posted on 2004-03-25
1
640 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I guess it is not common knowledge to most Wintel engineers/administrators: If you have an SNMP-based monitoring system in your environment (and it's common to have SNMP or Syslog) it's reasonably easy to enable monitoring of the Windows Event logs,…
Scenerio: You have a server running Server 2003 and have applied a retail pack of Terminal Server Licenses.  You want to change servers or your server has crashed and you need to reapply the Terminal Server Licenses. When you enter the 16-digit lic…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…

803 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