Rename computers and re-join to a domain

December 23, 2009 at 07:04:22
Specs: Windows XP/2k/vista/win7, min 512
Hello, is it possible to rename an entire network of PC's from a batch file?
I'd like to execute a batch file or VBScript that will call an Excel file that
has "old computer names" and "new computer names".
If the application could rename the computers accordingly, join the domain and
place the computers in a specified OU that would make this task very simple.
Is this possible?

Thanks in advance.
BTW, pc's are 2K, XP, Vista and Windows 7.

See More: Rename computers and re-join to a domain

Report •

December 23, 2009 at 07:12:10
If it's possible to have the computer renamed to the login name of the user, that would be much better.
Thanks again.

Report •

December 24, 2009 at 00:43:41
get excel data to text (imo) easiest for text list of old/new names.

then, for each computer,
should just be a bunch of analysis of reg dumps of certain keys. then use REG ADD/DELete to attain your objective.
(see reg /?)
if you have multiple userprofiles per computer, it gets gnarley
(as far as naming computer as username.)
just search a registry for computer name as i did, and see what you need to change (probably all instances)
where x starts at one. there are lots of other instances.
the text parsing/analysis of REG QUERY output is fairly straightforward, but if you hit problem i'll try to help.
i've never tried this (no access to server environment), you prob'ly need to have all users logged off, and yourself admin priv. (i figure you know far more of this than i)

Report •

Related Solutions

Ask Question