Hi can someone know the script to change the computer name during recovery plan. This is our script, everything is working except the script to change computer name. Thank you.
netsh interface ip set address name="Ethernet 4" source=static ^ address=x.x.x. mask=255.255.255.0 gate=x.x.x.x
netsh interface ip set dnsservers "Ethernet 4" static x.x.x.x
timeout /t 10 /nobreak
WMIC computersystem where name="computername" call rename name="newcomputername"
shutdown.exe -r -t 00