Announcement

Collapse
No announcement yet.

Redirect AD computers container

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

  • Redirect AD computers container

    When adding computers to the domain I would like the computers to be put in their proper OUs. We have a site OU and under that we have divisional OUs and under each division OU we have a computers and a users OU. I would like to direct the computers to the divisional computers OU when they join the domain. Each of our computers are named with first three or four letters being the same as their divisional OU. I am looking for the best way to do this. Any help would be much appreciated. Thank You.

  • #2
    Re: Redirect AD computers container

    If you create the computer account in the right OU before you add the computer to the domain, it ill be OK.
    I understand you need every computer redirected to its specific OU, so this article is not relevant, is it? It deals with changing the default OUs for new users and computers created in the domain.
    You might want to try a search in these forums. Can this thread be of any help? Or this one?

    Good luck.

    Sorin Solomon


    In order to succeed, your desire for success should be greater than your fear of failure.
    -

    Comment


    • #3
      Re: Redirect AD computers container

      Thank You for your reply. I have decided to manually add the computers before they join the domain. I don't have enough users to justify spending a lot of time trying to create a script. So it is not that much of an iconvenience.

      Comment


      • #4
        Re: Redirect AD computers container

        for your requirement you need to do some change to active directory

        Check if this helps( do a test in test env)
        • Open LDP.
        • From the menu, select Connection Connect.
        • For Server, enter the name of a domain controller (or leave blank to do a serverless bind).
        • For Port, enter 389.
        • Click OK.
        • From the menu, select Connection Bind.
        • Enter credentials of a domain user.
        • Click OK.
        • From the menu, select Browse Modify.
        • For DN, enter the distinguished name of the domainDNS object of the domain you want to modify.
        • For Attribute, enter wellKnownObjects.
        • For Values, enter the following:

          B:32:AA312825768811D1ADED00C04FD8D5CD:CN=Computers ,<DomainDN>


        • where <DomainDN> is the same as the DN you enter for the DN field.
        • Select Delete for the Operation and click the Enter button.
        • Go back to the Values field and enter the following:

          B:32:AA312825768811D1ADED00C04FD8D5CD:<NewComputer sParent>,<DomainDN>



          where <NewComputersParent> is the new parent container for new computer objects (e.g., ou=RAllenCorp Computers).
        • Select Add for the Operation and click the Enter button.
        • Click the Run button.
        • The result of the operations will be displayed in the right pane of the main LDP window.

        Comment


        • #5
          Re: Redirect AD computers container

          Originally posted by charlsteve View Post
          for your requirement you need to do some change to active directory

          Check if this helps( do a test in test env)
          • Open LDP.
          • From the menu, select Connection Connect.
          • For Server, enter the name of a domain controller (or leave blank to do a serverless bind).
          • For Port, enter 389.
          • Click OK.
          • From the menu, select Connection Bind.
          • Enter credentials of a domain user.
          • Click OK.
          • From the menu, select Browse Modify.
          • For DN, enter the distinguished name of the domainDNS object of the domain you want to modify.
          • For Attribute, enter wellKnownObjects.
          • For Values, enter the following:

            B:32:AA312825768811D1ADED00C04FD8D5CD:CN=Computers ,<DomainDN>


          • where <DomainDN> is the same as the DN you enter for the DN field.
          • Select Delete for the Operation and click the Enter button.
          • Go back to the Values field and enter the following:

            B:32:AA312825768811D1ADED00C04FD8D5CD:<NewComputer sParent>,<DomainDN>



            where <NewComputersParent> is the new parent container for new computer objects (e.g., ou=RAllenCorp Computers).
          • Select Add for the Operation and click the Enter button.
          • Click the Run button.
          • The result of the operations will be displayed in the right pane of the main LDP window.
          What you are talking about can be accomplished using redircmp.exe (you need to be at W2K3 domain functional level) - no need to copy&paste from Robbie Allen's book without proper credit.
          But in any case, this does not apply to the original poster as he is interested to have multiple target OUs that should be chosen based on computer account name.
          Guy Teverovsky
          "Smith & Wesson - the original point and click interface"

          Comment

          Working...
          X