?
Solved

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

Posted on 2004-03-25
1
Medium Priority
?
652 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 16

Accepted Solution

by:
JamesDS earned 980 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

Veeam Task Manager for Hyper-V

Task Manager for Hyper-V provides critical information that allows you to monitor Hyper-V performance by displaying real-time views of CPU and memory at the individual VM-level, so you can quickly identify which VMs are using host resources.

Question has a verified solution.

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

The HP utility "HP Lights-Out Online Configuration Utility for Windows Server 2003/2008" could be of great use when it comes to remotely configure a HP servers ILO WITHOUT rebooting the server. We would only need to create and run scripts using thi…
This article provides a convenient collection of links to Microsoft provided Security Patches for operating systems that have reached their End of Life support cycle. Included operating systems covered by this article are Windows XP,  Windows Server…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

765 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