Solved

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

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

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

I've always wanted to allow a user to have a printer no matter where they login. The steps below will show you how to achieve just that. In this Article I'll show how to deploy printers automatically with group policy and then using security fil…
Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
There are cases when e.g. an IT administrator wants to have full access and view into selected mailboxes on Exchange server, directly from his own email account in Outlook or Outlook Web Access. This proves useful when for example administrator want…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

691 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