>>>>> On Tue, 28 Dec 2010 18:14:17 +0000, mamadou diop <diopmodou8 at gmail.com> said: > set MAC=mac adress got with a method i don't know > if %mac%==00:08:74:B4:05:1D set computername=PC01 > if %mac%==00:14:22:D6:FA:FC set computername=PC02 You can do this using a DHCP server. -- regards Thomas