Link to home
Start Free TrialLog in
Avatar of begeorge
begeorge

asked on

Rename Computer Vbs Script

I need help with a script that will remotely rename a computer that is part of Active Directory. I would like to use psexec or something that will allow me to do this without login on to the computers. They are running windows 7. Thanks a lot.
ASKER CERTIFIED SOLUTION
Avatar of akq-HH
akq-HH
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of begeorge
begeorge

ASKER

This command is great. However is there
A way to rename multiple machines at once? Thanks in advance
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Will this script prompt me for a password every time it executes line 2?
Same password for all Computers? Add it to your command line. (/PasswordD:password)

Diffent Passwords?

Adjust your csv file like this....

OldName,NewName,Account,Password
pc1-old,pc1-new,AdminA,PassA
pc2-old,pc2-new,AdminB,PassB
pc3-old,pc3-new,AdminA,PassA

and add one additional parameter at the end of line 2:  /PasswordD:$($.c.Password)