I have this script.Which can rename a machine name in the computers.txt file to the name given in the script (Dev-chen-pc5000)
C:\>for /f "tokens=1,2" %x in (C:\computers.txt) do netdom renamecomputer %x /n
ewname:dev-chen-pc5000 /userD:development\administrator /passwordd:password /reboot:10 /force
this is working perfectly for me.
What i want now is to do this for many systems at once.
Can i have a script to rename all the machines in the computers.txt
I have the content as
Oldname : Newname (Inthe txt file)
Can a script rename all the machines at once.