Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a command like the following:

wmic /node:"COMPUTERNAME" bios get serialnumber

But by MAC address instead of computer name?

A solution to that would be appreciated, although if you have suggestions for the bigger problem overall it would be greatly appreciated. I'm not very experienced at this.

The problem we're trying to solve is that we have computers with no OS on them, so when we connect them to ghost console by PXE we only see them by mac address.

We have an Excel sheet with serial numbers and our local identifiers to be used as the computer name (we don't have the mac addresses) so I want to get the serial number from X MAC address and then automatically assign the computer name to our sysprep (or give it a random name and then change it after install).

So if you have a better way to do this, and or suggestions to improve it please share. I'm restricted in what software I can use. We have Windows Server 2003 and the Norton Ghost suite. Were installing Windows XP images with Sysprep if that helps also.

share|improve this question
I'd suggest adding the MAC address to your Excel sheet, actually. A useful value to have in a machine tracking spreadsheet anyhow. – HopelessN00b Sep 11 '12 at 19:53
up vote 0 down vote accepted

I don't know of any way to do what you're asking exactly. If you're willing to put some time into setting it up, you could PXE boot WinPE (available freely in the WinAIK) from Server 2003's WDS. Then use scripting (PowerShell for instance) in WinPE to get the MAC/Serial/Whatever, and pull the correct image.

While you're using WinPE, it comes with ImageX which can take and write images of Windows machines, no Ghost necessary, though if you've got the image already you'll probably want to keep it.

I'm really not sure how you'd rename the computer other than having the script that selects the image also write the computer's name to a file; then have a boot script rename the computer based on that file. The new tools for Windows don't much work on ancient XP installations (XP came out a decade ago).

share|improve this answer

FOG has a "hardware inventory" task which captures DMI info including serial numbers; hosts can be bulk-imported via CSV with hostname/MAC address, and tasks can be bulk-deployed.

share|improve this answer

The computer will automatically get a random computer name if you use Computername=* in the sysprep file. Then you can use a vbscript or other tool to rename the computer after sysprep completes.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.