Managing synchronization in Active Directory primarily involves replication between domain controllers.
Here are some examples of managing replication in AD using command-line tools:
REPADMIN: A command-line tool used for diagnosing and managing replication in AD.
Example: Force immediate replication between two domain controllers:
repadmin /replicate DC1 DC2 "CN=Configuration,DC=example,DC=com"
Example: Check replication status for a specific domain controller:
repadmin /showrepl DC1
Example: Display the replication partners for a domain controller:
repadmin /showreps DC1
PowerShell: PowerShell provides cmdlets for managing and automating AD tasks, including replication.
Example: Force replication between two domain controllers:
Sync-ADObject -Object "CN=John Doe,OU=Users,DC=example,DC=com" -Source DC1 -Destination DC2
Example: Check replication metadata for an object:
Get-ADReplicationAttributeMetadata -Object "CN=John Doe,OU=Users,DC=example,DC=com" -Server DC1
Example: Check replication status for a domain controller:
Get-ADReplicationFailure -Target DC1
Комментариев нет:
Отправить комментарий