unwise Posted April 21, 2008 Share Posted April 21, 2008 I'm deploying a Windows XP system with WinPE 2.0 And I use a WDS server for that.I do a unattended installation of XP (NOT A IMAGE), the only problem is in RIS the setup get the MACHINENAME from AD but with WDS it doesn't.Now am I looking for a way to get my machine name from AD before is starts installing my OS. Is there a way to do this or is this impossible with WDS? Link to comment Share on other sites More sharing options...
enuffsaid Posted April 21, 2008 Share Posted April 21, 2008 A few years ago I wrote a small script that assigns the Computername by checking the MAC address. Would that be of any help to you? Link to comment Share on other sites More sharing options...
unwise Posted April 21, 2008 Author Share Posted April 21, 2008 Can i use it in WINPE? (just to get the machine name in a variable). Link to comment Share on other sites More sharing options...
enuffsaid Posted April 21, 2008 Share Posted April 21, 2008 I don't see why not Link to comment Share on other sites More sharing options...
unwise Posted April 21, 2008 Author Share Posted April 21, 2008 Can you post the script/ files so i can see if it works or not? Link to comment Share on other sites More sharing options...
Kingskawn Posted April 25, 2008 Share Posted April 25, 2008 also interested Link to comment Share on other sites More sharing options...
Smiley357 Posted April 25, 2008 Share Posted April 25, 2008 I used these two lines in an old script that I used mac’s as computer names. I used a tool called compname.exe. I copy it to %windir%/system32 dir at the start of my bat file. Not sure if this helps or not.for /f "tokens=*" %%z in ('compname /d ?m') do set MAC=%%zcompname /c %MAC%>NUL Link to comment Share on other sites More sharing options...
JakeLD Posted April 25, 2008 Share Posted April 25, 2008 Try this tool.http://mystuff.clarke.co.nz/MyStuff/Default.asp Link to comment Share on other sites More sharing options...
unwise Posted June 9, 2008 Author Share Posted June 9, 2008 (edited) After trying to llok on alot of website I still don't know het to get my MACHINENAME out of AD. My WDS server boot a winpe (its a very clean one) My winpe formats the drive, and copy i386 folder from server to local disk. then start winxp setup with a sif file. in my sif file i have %MACHINENAME% as var. But %machinename% is at this moment * cause i putted "%machinename% = *" in the start of my script. What i want is a script dat read in my active directory and give me the right computer name for the computer i want to install. I will compare the MAC adress or GUID from the computer and the compûtername in AD. Is this possible? If yes can you point me in de right directions or maybe better give me with a script.I hope someone can helps me... Edited June 9, 2008 by unwise Link to comment Share on other sites More sharing options...
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