Re: Remotely rename computer name and join to domain



Kil wrote:
Is there a way to auto rename a computer in certain order and then
join it to a domain via script?

I use an imaging program to image computers and need them to be
automatically renamed in certain order (i.e. labpc1, labpc2, &
labpc3).

Right now, I go to every single computer and rename it and wait and
then join it to the domain...please help!

Why do you, "... go to every single computer and rename it and wait and then
join it to the domain ..."?
What part of what process are you at that you are doing this?

If this is some unattended installation - why not script it and have it
rename itself based off some known constant (MAC address maybe?) and then it
reboots and joins the domain?

If you are joining old computers to a new domain - then why not script it so
you sit in one place - remotely rename all the computers (surely you have a
list of the old names and you obviously have administrative rights on each
of these systems) and set it up (script it) so that it reboots after the
rename and joins the domain?

If they are already in the domain and you are just needing to rename them to
some naming scheme - why not just use a script to do that for you?

Most of that could be done with nothing more than batch scribts or VBScripts
remotely - sitting at a single computer (and some would be done during a
process - but I do not know at what point in what process - if any - you are
wanting to rename these computers and join a domain.) You will have to know
the name of the current system and what the new name will be in some cases.
Otherwise - the NETDOM command line tooland perhaps a tool like PSEXEC would
allow you to sit in a single location and rename away... (and join the
domain with the right username/passwords.)

--
Shenan Stanley
MS-MVP
--
How To Ask Questions The Smart Way
http://www.catb.org/~esr/faqs/smart-questions.html


.



Relevant Pages

  • Targeting VBScript to rename PCs
    ... Remove aged accounts, Move Computers to the correct OU ... I have the script for the last one working ... 'Rename PC and domain machine account ...
    (microsoft.public.scripting.vbscript)
  • Re: force a script to resume before it is ready
    ... strState = "Offline" ... This is part of my FTP script that connects to multiple Computers (as ... trying to rename a file that does not exist. ...
    (microsoft.public.scripting.vbscript)
  • compiling a script
    ... How do I run the following script if I want to rename my computers in the domain? ... strValueName = "ActiveComputerName" ...
    (microsoft.public.scripting.wsh)
  • Re: Can I rename computers through AD?
    ... You cannot rename computers from the AD consoles. ... For WinXP you can use NETDOM which you can script to ... If you have Win2K, however, you cannot use netdom. ...
    (microsoft.public.win2000.active_directory)
  • Re: Finding users in local admin groups
    ... > Here is a vbscript that you can run against a remote computer that moves ... > *local* users except 'Administrator) from the Administrators group to the ... You should also add to the script logging to a file of the ... > you moved on what computers. ...
    (microsoft.public.win2000.security)