September 19, 200520 yr WSNAME workstation renamerhttp://mystuff.clarke.co.nz/wsname.aspI've used this utility in the past for a sysprep cd I made. It was pretty basic but after imaging would use an ipconfig batch like Martin suggested then look up the mac address in a text file and rename the workstation as appropriate. It can also name the workstation based on the asset tag.
September 19, 200520 yr For that you need to use WMIGet the WMI SDK and code a script in VB or whatever to manage that class ...
September 20, 200520 yr Author In fact it is batch I got mac using ipconfig /all | find /i "Physical address", then I parse this to make it .ini file compatible...I will try to post it today/tomorrow for you.<{POST_SNAPBACK}>BUMP!
September 22, 200520 yr Here is a VBS script that list the Network Adaptor Name and the IP address.I have only tested it on Vista, I have not tried it on any other OS.strComputer = "."Dim Act : Set Act = CreateObject("Wscript.shell")Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")Set colItems = objWMIService.ExecQuery("Select * From Win32_NetworkAdapterConfiguration " & _ "Where IPEnabled = True")For Each objItem in colItems NetAdp = Split(objItem.Caption, "]") Act.Popup "Network Adaptor Name : " & NetAdp(1) , 5, "Network Adaptor", 0 + 32 For Each objAddress in objItem.IPAddress Act.Popup "IP Address: " & objAddress , 5, "Ip Address", 0 + 32 NextNext
October 5, 200520 yr Author In fact it is batch I got mac using ipconfig /all | find /i "Physical address", then I parse this to make it .ini file compatible...I will try to post it today/tomorrow for you.<{POST_SNAPBACK}>bump?
February 7, 200917 yr I think I have found an ugly work around tho. A Boot CD that boots into DOS, sets asset tag, then fires up PE.Can you tell me what is the ugly work around?We are trying to do the same thing here at work, boot into DOS => sets asset tag => then to BartPE
Create an account or sign in to comment