Link to home
Start Free TrialLog in
Avatar of rschmauch
rschmauch

asked on

How do you change computer names in your network using Active Directory?

Recently, we had to do a task where we would have to change all of the computer's names on the network with a different format. An example would be instead of having it be 008-CS-00, it would be formatted 008-Service Tag Number From Dell. Is there an easy way to do this without having to go to each computer to do it? The server is Windows Server 2003 R2 and the workstations are Windows XP Professional.
Avatar of VRBones
VRBones
Flag of Australia image

On each machine, open system properties and redomain as the new name. It should detect that it was previously domained as another name and change AD accordingly.
as far as I know, you need to rename each system by visiting them, and using domain admin creds to authorise the changes and immediate restart.

i know you can do this from the command line, so it maybe possible to set a script running on each system, but no real way to mass deploy as each system will need its own script/systemname set, and you really don't want to expose your creds/passwords.
Avatar of johnb6767
I could possibly see using a script in combination of using domjoin.exe, and using wmic to pull the s/n, and store it as a variable.....I dont have a Dell handy to see the results....

For example

wmic bios get serialnumber

Should show you the Service Tag number.... Then a little bit of finessing to get into a variable format....

Just thinking off the top of my head really....
ASKER CERTIFIED SOLUTION
Avatar of dacasey
dacasey
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
My bad, thats the one I was thinking of... Where did I get domjoin from?