Creas un .reg con esto:
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName]
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ComputerName]
"ComputerName"="NOMBRE"
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\ComputerName\ActiveComputerName]
"ComputerName"="NOMBRE"
Y un .bat con:
regedit /s Ruta\nombre.reg
Lo ejecutas y listo... Hace tiempo que no tocaba batch, pero espero igualmente que funcione