Name = "MY_PC_NAME"
Set colComputers = objWMIService.ExecQuery (“Select * from Win32_ComputerSystem”)
For Each objComputer in colComputers
err = objComputer.Rename(name)
if err <> 0 then
wscript.echo “There was an error renaming the machine. Please restart, and try again.”
wscript.echo “Machine successfully renamed: ” & Name