Sysprep and computernames

L

Ludwich Maartens

I am using Sysprep and the inf files to customise the
deployment of Windows 2000 to computers.

The problem is that I have to type in the computername
manually after deploying the Ghost image.

Is there any way to tell the mini-setup program that I
want the computername to be "ZAD" & the machine's serial
number?

Ludwich
 
O

Oli Restorick [MVP]

Hi there

I wrote compname a while back to do this. It's available from
www.willowhayes.co.uk and is freeware.

I think "compname.exe /c ZAD?a" should do the trick. To see what name will
be generated without actually doing anything, use /d instead of /c.

See compname /? for help. The ?a is a "best guess" function to find the
proper serial number. If only manufacturers could be consistent about which
SMBIOS field they use for the serial number.....


A couple of points to note... The program does not respect domain
membership when changing names, so ensure you only run it on a machine
that's not a domain member. Also, a reboot is required for the name change
to take effect. I suggest using netdom.exe (from the Support Tools) to join
the domain, if necessary. Of course, you will need a reboot between running
compname and running netdom.

Hope this helps

Oli
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top