Announcement

Collapse
No announcement yet.

How Can I join a computer to specific defined OU

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How Can I join a computer to specific defined OU

    Hi All,
    How can I join a computer to be joined to a particular OU and not on the default computer folder.

    I have four OUs and dont want to move them manually later on to specific OU without mentioning difficulties to idenfity to which they belong.

    Thanks for sharing! More Power



    Learning something new always

  • #2
    Code:
    [c:\tools\misc]netdom help join
    The syntax of this command is:
    
    The syntax of this command is:
    
    NETDOM JOIN machine /Domain:domain [/OU:ou path] [/UserD:user]
               [/PasswordD:[password | *]]
               [UserO:user] [/PasswordO:[password | *]]
               [/REBoot[:Time in seconds]]
    
    NETDOM JOIN Joins a workstation or member server to the domain.
    
    machine is the name of the workstation or member server to be joined
    
    /Domain         Specifies the domain which the machine should join
    
    /UserD          User account used to make the connection with the domain
                    specified by the /Domain argument
    
    /PasswordD      Password of the user account specified by /UserD.  A * means
                    to prompt for the password
    
    /UserO          User account used to make the connection with the machine to
                    be joined
    
    /PasswordO      Password of the user account specified by /UserO.  A * means
                    to prompt for the password
    
    /OU             Organizational unit under which to create the machine account.
                    This must be a fully qualified RFC 1779 DN for the OU.
                    If not specified, the account will be created under the default
                    organization unit for machine objects for that domain.
    
    /REBoot         Specifies that the machine should be shutdown and automatically
                    rebooted after the Join has completed.  The number of seconds
                    before automatic shutdown can also be provided.  Default is
                    20 seconds
    
    When joining a downlevel (Windows NT version 4 or before) machine to the domain
    the operation is not transacted.  Thus, a failure during the operation could
    leave the machine in an undetermined state with respect to the domain it is
    joined to.
    
    The act of joining a machine to the domain will create an account for the
    machine on the domain if it does not already exist.
    
    NETDOM HELP command | MORE displays Help one screen at a time.
    netdom.exe is part of W2K support tools.

    HTH
    Guy Teverovsky
    "Smith & Wesson - the original point and click interface"

    Comment


    • #3
      In 2003 you can prestage a computer account, meaning you can create the computer account in any OU that you want and after that when joining the computer account it will be directly created inside the OU that you created in.
      Best regards,
      Mostafa Itani

      ** Remember to give credit where credit is due and leave reputation points where appropriate **

      Comment


      • #4
        Pre-staging works the same in W2K
        Guy Teverovsky
        "Smith & Wesson - the original point and click interface"

        Comment


        • #5
          In Windows Server 2003 you can change the default OU in which the computer (and user) accounts are created by default:

          redirusr ou=userou,DC=company,dc=com

          and

          redircomp ou=computersou,DC=company,dc=com
          Cheers,

          Daniel Petri
          Microsoft Most Valuable Professional - Active Directory Directory Services
          MCSA/E, MCTS, MCITP, MCT

          Comment

          Working...
          X