Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2004-03-25
1
Medium Priority
?
653 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

Learn Veeam advantages over legacy backup

Every day, more and more legacy backup customers switch to Veeam. Technologies designed for the client-server era cannot restore any IT service running in the hybrid cloud within seconds. Learn top Veeam advantages over legacy backup and get Veeam for the price of your renewal

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…
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…
Have you created a query with information for a calendar? ... and then, abra-cadabra, the calendar is done?! I am going to show you how to make that happen. Visualize your data!  ... really see it To use the code to create a calendar from a q…
In a question here at Experts Exchange (https://www.experts-exchange.com/questions/29062564/Adobe-acrobat-reader-DC.html), a member asked how to create a signature in Adobe Acrobat Reader DC (the free Reader product, not the paid, full Acrobat produ…
Suggested Courses

604 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