depends on if u imaging entire volume of hd. if not create another logical partition and store the name there for the local storage.
but for entire volume image, store the names on the server in a "\\server\\names\\smith" folder(125 folders in names folder)
that way if you wanted smith computer done first, the script would do #1 as smith,#2 as xyz, etc.
sounds simple...
Ok first I'll explain what I?m trying to do (Warning: complicated!). We have like 125+ tablets. We re-image the tablets using ghost and when they come to boot I want them to auto setup. I almost have the auto setup complete except I have to enter there name when the imaging is complete (to much work when you do 125+ of them). We re-image our tablets 2 to 3 times a year, do to software upgrades, so the tablets we imaging are going to the same person which means same computer name.
My thoughts:
Since the computer name will change after the image I was thinking of doing a ?getmac > \\server\username\Mac.txt? (since the mac address will be the same before and after the image) so it puts a text file out on the server on the tablet owners network drive (remember there are going to be 125+ mac.txt in 125+ users directories.) This would be done before the image. (or I could use something else if you could think of it). Or i was thinking of "getmac >>" into one file and search for the string.
Then once it is time to upgrade we would image the tablets. I have the current image now auto logging in under admin for first boot and it asks for a user name. You put in the user name and it sets up the tablet for you. It adds it to the domain, it puts it in the right OU group, and other things. But putting in names at 2am (125 of them) gets hard. I end up screwing the harder names (we have some crazy names). And the numbers of tablets are growing.
So during the first boot instead of inputting the name I would like it to create its own mac.txt (as above but placed on local machine) and then search the \\server\ directory for the matching mac.txt (mac.txt is in someone?s usersname directory). Then from there some how extract the user name from the directory? another file maybe? Any way I could. Or make it a Variable like %1 = tsmith (if tsmith was the computername)
Any ideas? Let me know. Any help will be appreciated. I'm not the best in scripting but I'm learning and this is quite advanced for me.

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic