troubleshooting Question

Rename a machine remotely

Avatar of bsharath
bsharathFlag for India asked on
Microsoft Legacy OSMicrosoft Server OS
7 Comments1 Solution412 ViewsLast Modified:
Hi,

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.

Regards
Sharath
ASKER CERTIFIED SOLUTION
Farhan Kazi
Systems Engineer
Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros