Note: Most of this information was collected from the AD Connector Reference Guide. For the purposes of this article, a "resource" is any object, such as a computer, user, OU, or security group, that is available within the Active Directory.
- Understanding the Directory Synchronization
This schedule removes any imported resources in the Symantec Management Platform (aka SMP or Notification Server) that no longer exist in Active Directory. It also detects any resources, renamed or moved outside of the OU's they were initially imported from and deletes them - provided that the resource is not managed and has a status of Active in Notification Server.
To ensure the Altiris database has the most recent snapshot of Active Directory, run this schedule manually and then run your import rules. To run it manually, click Start on your SMP Server, select Programs > Accessories > System Tools > Scheduled Tasks, and run NS.Directory Resync Update Schedule Item.
- Enabling the Directory Synchronization Schedule
- In the SMP Console, click Actions tab > Discover > Import Microsoft Active Directory.
- In the Resource Import Rules list, select the import rule you want to run to a schedule.
- In the right pane, select the Enable Schedule icon and then select a time period.
- Click OK to save your changes.
- Caveats
- If you move a computer from a domain to a workgroup you must delete the computer's record from Active Directory to avoid duplication in the database.
- A user Organizational Unit (OU) membership change in AD triggers user delete from CMDB during synchronization. This logic was changed starting from 8.1 RU4. The process should not delete the user, as he/she has never been deleted from AD, though OU membership has changed.
- How AD Synchronization Schedule works.
There are some internal checks that will evaluate if a resource needs to be deleted or stay in the database:
- If the resource is set to a status other than Active, it will not be removed.
- If an imported resource is managed and set to a status other than Active then it will not be removed.
- If the resource was never imported by the Microsoft Active Directory Component it will not be removed. Wait for Purge Maintenance or manually delete the resource.
- If the resource was created with an Import Rule that no longer exists then the resource will not be removed if it is deleted from Active Directory. Run the resolution in the article to associate the computer with a current rule or delete it from the report:
151975 Cleaning up Active Directory (AD) imported computer accounts created by deleted AD import rules
- If the resource shows that it has been deleted in the ItemResource table. Manually delete the computer from a report or collection.
- Directory Synchronization does not remove resources that are managed; it lets Purge Maintenance take care of those resources. Wait for Purge Maintenance or manually delete the resources.
- Preventing Moved resources from being deleted during Directory Synchronization
Use the following steps to prevent imported resources - which have been moved in AD - from being deleted.
- Move the objects that you need to move in your Active Directory before the next step is scheduled.
- Run (or schedule to run) your AD Import rules (either an Update or Full import will work). Ensure that you allow enough time for this step to complete before the next step is scheduled to run.
- Run (or schedule to run) the AD Import Directory Synchronization. If needed, see:
169580 How to find the Active Directory Synchronization schedule in 8.x