April 22, 200422 yr Would setting the computer names uniquely be possible using the Setup Manager utility? The unattended install I have created runs completely off CD and I am have used Setup manager to setup my WINNT.SIF file. In it, I have specified 3 machine names that will more than likely never change and will always be used on the same PC's. Has anyone used this process to specify machine names? If so, how would this work using a UA CD and will this work in the same manner as used earlier in this thread?
July 15, 200422 yr Hmm.. why are all your posts removed enuffsaid? This is the sort of thing I'm looking for but it seems the information isn't here.
November 24, 200421 yr I apologize if this has been covered elsewhere in the forums but I have been unable to find any other threads regarding this issue. I have been using compname to set my computernames based on the MAC address for Windows 2000 server and XP. They have been working fine. Here is an example of what I am usingcmdow @ /HIDECHO.ECHO Setting Computer NameECHO Please wait...for /f "tokens=1" %%i IN ('compname /d ?m') do set MAC=%%iIF %MAC% == 000000000000 compname /c apolloIF %MAC% == 000000000001 compname /c cratosThe problem I am having is that this does not seem to work at all under Windows Server 2003. I have manually run this and I keep getting the error"compname was unexpected at this time"Any ideas why this will not run on Windows Server 2003?
November 27, 200421 yr @SKiTLz:Check here:CompnameScripting the computer name Rename PC & Join Domain Automatically
November 29, 200421 yr Thanks for the links, but that does not allow me to use the MAC to set the computername. Plus, I don't really know VB so I am at a dissadvantage when trying to change it to suit my needs if it supported MAC addresses. Anyone else have anymore ideas as to why this won't work under Windows Server 2003?
November 30, 200421 yr compname was unexpected at this timeOK, time to come out of the lurking closet. (first post)Try it with only 1 %. The error is exactly the same as the one you get when you try it on CMD line in XP.After some googling, I found that %%i is to be used in a batch and only one % via CMD line.To test the batch itself, just rem the cmdow and put some pauses and echos in to see which parts run and which don't.
November 30, 200421 yr Thanks for the links, but that does not allow me to use the MAC to set the computername.What exactly do you want it do do ?I use a csv that I exported from excel that lists the serial numbers and associated computernames. You can go tru MAC instead of SN if you wish.I look up the matching computername via batch.
November 30, 200421 yr Have you run this during an unattended setup? I just tried running it again after editing it yo use a single % instead of a double and it did not change the server name. I can run this same exact .cmd file on Windows 2000 Server without issue, but Windows 2003 seems to not want to execute this for some reason. Now I just edited the file and ran it from a command prompt and it runs without error, with double %'s, but does not change the server name.This is what the .cmd file looks likecmdow @ /HIDECHO.ECHO Setting Computer NameECHO Please wait...for /f "tokens=1" %i IN ("compname /d ?m") do set MAC=%iIF %MAC% == 000000000000 compname /c apolloIF %MAC% == 000000000000 compname /c cratosIF %MAC% == 000000000000 compname /c cyclopsIF %MAC% == 000000000000 compname /c delphiIF %MAC% == 000000000000 compname /c janusIF %MAC% == 000000000000 compname /c marsIF %MAC% == 000000000000 compname /c mercuryIF %MAC% == 000000000000 compname /c neptuneIF %MAC% == 000000000000 compname /c nereidIF %MAC% == 000000000000 compname /c netiIF %MAC% == 000000000000 compname /c odysseyIF %MAC% == 000000000000 compname /c pallasIF %MAC% == 000000000000 compname /c plutoEXIT
December 1, 200421 yr Have you run this during an unattended setup?This is what the .cmd file looks like...Yes, it's run during attended setup, but via RunOnce.Not to sound patronising, but is that batchfile exactly what you use ? Or do you have real mac-addresses in the "real world" ?
December 1, 200421 yr The MACs have been substituted with 0's for posting purposesJust checking. I tried running it on 2003 and it ran without an error.
Create an account or sign in to comment