concept object in category active directory

appears as: objects, objects, object, An object, n object, object
Learn Active Directory Management in a Month of Lunches

This is an excerpt from Manning's book Learn Active Directory Management in a Month of Lunches.

A domain is a container for the objects you’ll work with—users, computers, groups, and so on. The domain provides a number of boundaries within the organization:

Imagine you have a domain with 6000 users, 6000 workstations, 700 groups, and 500 servers. If all of those objects are in a single container, you’ll have a hard time delegating administrative permissions and applying Group Policy. Organizational units (OUs) are used to give structure to your domain. You can put objects that are related by the rules you define, such as all the users in a specific business unit or location, into specific OUs and use those OUs to control the delegation of administrative permissions and the application of Group Policy. In a nutshell, OUs break the mass of objects in your domain into manageable sets.

In the preceding example, an OU may contain a few hundred users or computers, which is a more manageable proposition. OUs contain the objects you’ve read about in chapters 2 through 6. This chapter covers the OU lifecycle.

If you work on the principle that prevention is better than a cure, how can you prevent yourself from getting into a situation like this? There’s nothing that will guarantee you can’t make a mistake, but you can enable Protect from Accidental Deletion on the OU and its contents. This will stop you deleting objects by mistake, but because it can be removed, it doesn’t stop a rogue administrator from removing it and then deleting the OU.

Protect from Accidental Deletion appears as a checkbox on the dialogs in the GUI tools or as a parameter on the PowerShell cmdlets. It’s important that you realize it isn’t an AD property. What happens is that when you apply the protection, the Delete permission is denied to the Everyone group. This is a group maintained by Active Directory and does include everyone—no exceptions. If you attempt to delete an object that’s protected from accidental deletion, you’ll receive a dialog asking you to confirm the deletion and then you’ll be shown a message similar to figure 7.3.

Figure 7.3. Message received when attempting to delete an object protected from accidental deletion. This is an improvement on earlier versions of Windows, where you were just told you didn’t have permission to perform the deletion. If you get a message like this, check if Protect from Accidental Deletion is enabled.

7.6. Moving objects between OUs

Why would you want to move objects between OUs? There are a number of reasons:

PowerShell offers a simple command-line option for moving objects:

Get-ADObject -Filter {Name -eq "ADLComp10"} |
Move-ADObject -TargetPath "OU=ADML1,DC=Manticore,DC=org"

Find the object using its name as a filter. Pipe the object to Move-ADObject. You need to provide the distinguished name of the OU to which you want to move the object.