3

I would like to know how can I accomplish the following:

When I join a workstation (with Windows 7) in the domain, I want that computer to be put into a specific OU. Only when its a workstation with Windows 7. This is because I have GPOs that must apply to all workstations in the domain.

Can I only accomplish this using a script? Or can I set a rule like if the computers has Windows 7, put that computer into this specific OU.

4
  • Where would you like this rule to run on?
    – Jim B
    Jun 1, 2012 at 18:50
  • Do you want the all to go to the same OU or would some go to a different OU?
    – MDMarra
    Jun 1, 2012 at 18:59
  • I just want all employees workstations on the same OU, non-workstations on a different OU. Jun 1, 2012 at 19:04
  • Are these new image deployment? If so, you could look at using MDT to deploy the image and set it up to join to that specific OU.
    – Bad Dos
    Jun 3, 2012 at 17:50

1 Answer 1

6

By default all computers joined to the domain will go the Computers container, unless you pre-stage a computer object in a specific OU. You could modify this by changing the default path for computer objects using redircmp.exe (found in %SYSTEMROOT%\System32). For example:

redircmp OU=win7,DC=company,DC=com

This would change the default path to the Win7 OU, under the root of the domain.

See Redirecting the users and computers containers in Active Directory domains for more info.

You could specify your OU for the Windows 7 machines as the default, then if needed, pre-stage any workstations/servers you don't want in the Windows 7 machine OU elsewhere.

Our you could simply move the objects to the required OUs after they've been joined to the domain and wait for GPO processing to re-occur.

2
  • Cant I redirect computers to specific OUs based on their OS current ? Jun 1, 2012 at 19:30
  • 4
    Not that I'm aware of. Why not just pre-create the computer objects in the proper OU THEN join to the domain?
    – HostBits
    Jun 1, 2012 at 20:43

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .