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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
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,Pa ssword
pc1-old,pc1-new,AdminA,Pas sA
pc2-old,pc2-new,AdminB,Pas sB
pc3-old,pc3-new,AdminA,Pas sA
and add one additional parameter at the end of line 2: /PasswordD:$($.c.Password)
Diffent Passwords?
Adjust your csv file like this....
OldName,NewName,Account,Pa
pc1-old,pc1-new,AdminA,Pas
pc2-old,pc2-new,AdminB,Pas
pc3-old,pc3-new,AdminA,Pas
and add one additional parameter at the end of line 2: /PasswordD:$($.c.Password)
ASKER
A way to rename multiple machines at once? Thanks in advance