<div>Hello, after a few days without writing on the mailing list i recome with the good new that i have got</div>
<div>since Friday the 17th my technologist engineering degree in telecomputing.</div>
<div> </div>
<div>Hi,</div>
<div> </div>
<div>I have a remote install server which deploys windows clients. I want to write a script which will </div>
<div>be run at the first starting up after the installation and rename the computer according to its mac adress.</div>
<div>The problem is that in windows, there's not a variable which contains the mac adress (like %computername%, %path%,...).</div>
<div>I have done many researches but i am not satisfied that's why i have asked this question to fai-linux.</div>
<div>Here is the algorithm of the script:</div>
<div> </div>
<div>set MAC=mac adress got with a method i don't know</div>
<div> </div>
<div>if %mac%==00:08:74:B4:05:1D set computername=PC01</div>
<div>if %mac%==00:14:22:D6:FA:FC set computername=PC02</div>
<div>.</div>
<div>.</div>
<div>.</div>