turkeyshoot Posted September 19, 2005 Posted September 19, 2005 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.
kazuza Posted September 19, 2005 Posted September 19, 2005 For that you need to use WMIGet the WMI SDK and code a script in VB or whatever to manage that class ...
fly Posted September 20, 2005 Author Posted September 20, 2005 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!
Martin Zugec Posted September 22, 2005 Posted September 22, 2005 Sorry dude, wait till weekend, I dont have even minute these days
gunsmokingman Posted September 22, 2005 Posted September 22, 2005 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
fly Posted October 5, 2005 Author Posted October 5, 2005 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?
gqseen Posted February 7, 2009 Posted February 7, 2009 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
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now