have a look here :
http://www.swynk.com/winscript/SCRIPT_RenameWorkstationVBS.asp

"netdom.exe" from w2k resource kit is really powerful. It can perform tasks like join/remove from domain, or query active directory for servers and workstations on an eye blink. The above script is based on that.
ps1.You have change ths sid or you have run the sysprep, haven't you ?
ps2. Are you from Greece ?

[ 16 February 2002: Message edited by: novastar ]