Link to home
Start Free TrialLog in
Avatar of jlspencer
jlspencer

asked on

Renaming computers in domain

I would like to use the below "single Line" command in a script to rename 100+ computers
but I would want it in a script so I would receive prompts for PASSWORD, OLD COMPUTER NAME and NEW COMPUTER NAME  I would also like to populate the AD/Computer table/Description as well. If the last one is not possible not a huge problem.

netdom renamecomputer Computername /newname:new_computername
/userd:domain\UserName /passwordd:password |* /usero:UserName
/passwordo:password |* /force /reboot:Time in seconds
ASKER CERTIFIED SOLUTION
Avatar of bull_dog9
bull_dog9
Flag of Canada 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 jlspencer
jlspencer

ASKER

That will not work as I will have to have them first join the domain via VPN. a CSV file assumes all computers are on the network.  I really don't mind doing them one at a time. So is it possible  to use a script for prompts and the netdom utility on Server 2003?

Thank you in advance.