Synchronization of the ODS structure
Synchronization of the ODS structure
Synchronizes the structure of the organization directory of two DSM environments. The container objects domains, organizational units, and groups are synchronized, but not their content
Examples:
Hint: The examples require two connected PowerShell drives on the environments to be synchronized. |
In the first example the folder structure of two drives is synchronized, for this purpose the source folder and the destination folder are needed:
New-EmdbDrive -BlsHost bls-production.solys.local -Name EmdbSrc New-EmdbDrive -BlsHost bls-sandbox -Name EmdbDst Sync-EmdbOdsStructure -Source EmdbSrc:\rootDSE\Managed Users & Computers' -Target 'EmdbDst:\rootDSE\Managed Users & Computers' |
If the -Mirror switch parameter is specified, the structure of the source environment is mirrored to the target environment. This means that objects of the target drive that do not exist in the environment of the source drive are deleted there:
Sync-EmdbOdsStructure -Source 'EmdbSrc:\rootDSE\Managed Users & Computers' -Target 'EmdbDst:\rootDSE\Managed Users & Computers' -Mirror |
The -CloneIDs switch specifies that the container objects are created with the same unique ID, if this is possible, i.e. the IDs are not yet used in the target system:
Sync-EmdbOdsStructure -Source 'EmdbSrc:\rootDSE\Managed Users & Computers' -Target 'EmdbDst:\rootDSE\Managed Users & Computers' -CloneIDs |