web view15.10.2015 · -valuemergetype 'update' ` ... -expression...

124
New-ADSyncRule ` -Name 'Out to AAD - User Identity' ` -Identifier '56f1cfa3-84cc-47d6-b1c2-5c85b0649af7' ` -Description '' ` -Direction 'Outbound' ` -Precedence 116 ` -PrecedenceAfter '00000000-0000-0000-0000-000000000000' ` -PrecedenceBefore '00000000-0000-0000-0000-000000000000' ` -SourceObjectType 'person' ` -TargetObjectType 'user' ` -Connector 'b891884f-051e-4a83-95af-2544101c9083' ` -LinkType 'Join' ` -SoftDeleteExpiryInterval 0 ` -ImmutableTag 'Microsoft.OuttoAADUserIdentity.004' ` -OutVariable syncRule Add-ADSyncAttributeFlowMapping ` -SynchronizationRule $syncRule[0] ` -Source @('accountEnabled') ` -Destination 'accountEnabled' ` -FlowType 'Direct' ` -ValueMergeType 'Update' ` -OutVariable syncRule Add-ADSyncAttributeFlowMapping ` -SynchronizationRule $syncRule[0] ` -Source @('mailNickname') ` -Destination 'alias' ` -FlowType 'Direct' ` -ValueMergeType 'Update' ` -OutVariable syncRule Add-ADSyncAttributeFlowMapping ` -SynchronizationRule $syncRule[0] ` -Source @('displayName') ` -Destination 'displayName' ` -FlowType 'Direct' ` -ValueMergeType 'Update' ` -OutVariable syncRule Add-ADSyncAttributeFlowMapping ` -SynchronizationRule $syncRule[0] ` -Source @('domainFQDN') ` -Destination 'dnsDomainName' ` -FlowType 'Direct' ` -ValueMergeType 'Update' ` -OutVariable syncRule

Upload: vannga

Post on 06-Mar-2018

250 views

Category:

Documents


9 download

TRANSCRIPT

Page 1: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

New-ADSyncRule `-Name 'Out to AAD - User Identity' `-Identifier '56f1cfa3-84cc-47d6-b1c2-5c85b0649af7' `-Description '' `-Direction 'Outbound' `-Precedence 116 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'user' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADUserIdentity.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('accountEnabled') `-Destination 'accountEnabled' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('domainFQDN') `-Destination 'dnsDomainName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('givenName') `-Destination 'givenName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 2: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mail') `-Destination 'mail' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('domainNetBios') `-Destination 'netBiosName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('accountName') `-Destination 'onPremisesSamAccountName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('onPremisesUserPrincipalName') `-Destination 'onPremisesUserPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sn') `-Destination 'surname' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userPrincipalName') `-Destination 'userPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `

Page 3: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','User','EQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - User ExchangeOnline' `-Identifier '19677baf-667b-444d-b707-73c32babda96' `-Description '' `-Direction 'Outbound' `-Precedence 117 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'user' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADUserExchangeOnline.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('accountEnabled') `-Destination 'accountEnabled' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `

Page 4: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-SynchronizationRule $syncRule[0] `-Source @('assistant') `-Destination 'assistant' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('authOrig') `-Destination 'authOrig' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('l') `-Destination 'city' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('co') `-Destination 'country' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('company') `-Destination 'company' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('countryCode') `-Destination 'countryCode' `-FlowType 'Expression' `-ValueMergeType 'Update' `-Expression 'IIF(IsNullOrEmpty([countryCode]),IgnoreThisFlow,[countryCode])' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('c') `-Destination 'countryLetterCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 5: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('department') `-Destination 'department' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('dLMemRejectPerms') `-Destination 'dLMemRejectPerms' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('dLMemSubmitPerms') `-Destination 'dLMemSubmitPerms' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute1') `-Destination 'extensionAttribute1' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute10') `-Destination 'extensionAttribute10' `-FlowType 'Direct' `

Page 6: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute11') `-Destination 'extensionAttribute11' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute12') `-Destination 'extensionAttribute12' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute13') `-Destination 'extensionAttribute13' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute14') `-Destination 'extensionAttribute14' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute15') `-Destination 'extensionAttribute15' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute2') `-Destination 'extensionAttribute2' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute3') `

Page 7: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Destination 'extensionAttribute3' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute4') `-Destination 'extensionAttribute4' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute5') `-Destination 'extensionAttribute5' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute6') `-Destination 'extensionAttribute6' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute7') `-Destination 'extensionAttribute7' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute8') `-Destination 'extensionAttribute8' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute9') `-Destination 'extensionAttribute9' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `

Page 8: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-SynchronizationRule $syncRule[0] `-Source @('facsimileTelephoneNumber') `-Destination 'facsimileTelephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('givenName') `-Destination 'givenName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('homePhone') `-Destination 'homePhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('info') `-Destination 'info' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('initials') `-Destination 'initials' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('legacyExchangeDN') `-Destination 'legacyExchangeDN' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('manager') `-Destination 'manager' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 9: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mobile') `-Destination 'mobile' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msDS-HABSeniorityIndex') `-Destination 'msDsHabSeniorityIndex' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msDS-PhoneticDisplayName') `-Destination 'msDsPhoneticDisplayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchArchiveGUID') `-Destination 'msExchArchiveGuid' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchArchiveName') `-Destination 'msExchArchiveName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchAssistantName') `-Destination 'msExchAssistantName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchAuditAdmin') `-Destination 'msExchAuditAdmin' `-FlowType 'Direct' `-ValueMergeType 'Update' `

Page 10: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchAuditDelegate') `-Destination 'msExchAuditDelegate' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchAuditDelegateAdmin') `-Destination 'msExchAuditDelegateAdmin' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchAuditOwner') `-Destination 'msExchAuditOwner' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchBlockedSendersHash') `-Destination 'msExchBlockedSendersHash' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchBypassAudit') `-Destination 'msExchBypassAudit' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchDelegateListLink') `-Destination 'msExchDelegateListLink' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchELCExpirySuspensionEnd') `-Destination 'msExchElcExpirySuspensionEnd' `

Page 11: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchELCExpirySuspensionStart') `-Destination 'msExchElcExpirySuspensionStart' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchELCMailboxFlags') `-Destination 'msExchElcMailboxFlags' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchEnableModeration') `-Destination 'msExchEnableModeration' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute1') `-Destination 'msExchExtensionCustomAttribute1' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute2') `-Destination 'msExchExtensionCustomAttribute2' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute3') `-Destination 'msExchExtensionCustomAttribute3' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `

Page 12: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Source @('msExchExtensionCustomAttribute4') `-Destination 'msExchExtensionCustomAttribute4' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute5') `-Destination 'msExchExtensionCustomAttribute5' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchHideFromAddressLists') `-Destination 'msExchHideFromAddressLists' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchImmutableId') `-Destination 'msExchImmutableId' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchLitigationHoldDate') `-Destination 'msExchLitigationHoldDate' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchLitigationHoldOwner') `-Destination 'msExchLitigationHoldOwner' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchMailboxGuid') `-Destination 'msExchMailboxGuid' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 13: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchMailboxAuditEnable') `-Destination 'msExchMailboxAuditEnable' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchMailboxAuditLogAgeLimit') `-Destination 'msExchMailboxAuditLogAgeLimit' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchModeratedByLink') `-Destination 'msExchModeratedByLink' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchModerationFlags') `-Destination 'msExchModerationFlags' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRecipientDisplayType') `-Destination 'msExchRecipientDisplayType' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRecipientTypeDetails') `-Destination 'msExchRecipientTypeDetails' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRemoteRecipientType') `-Destination 'msExchRemoteRecipientType' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 14: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRequireAuthToSendTo') `-Destination 'msExchRequireAuthToSendTo' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchResourceCapacity') `-Destination 'msExchResourceCapacity' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchResourceDisplay') `-Destination 'msExchResourceDisplay' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchResourceMetaData') `-Destination 'msExchResourceMetadata' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchResourceSearchProperties') `-Destination 'msExchResourceSearchProperties' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRetentionComment') `-Destination 'msExchRetentionComment' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRetentionURL') `-Destination 'msExchRetentionUrl' `-FlowType 'Direct' `

Page 15: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchSafeRecipientsHash') `-Destination 'msExchSafeRecipientsHash' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchSafeSendersHash') `-Destination 'msExchSafeSendersHash' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchSenderHintTranslations') `-Destination 'msExchSenderHintTranslations' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchTeamMailboxExpiration') `-Destination 'msExchTeamMailboxExpiration' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchTeamMailboxOwners') `-Destination 'msExchTeamMailboxOwners' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchTeamMailboxSharePointUrl') `-Destination 'msExchTeamMailboxSharePointUrl' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchUserHoldPolicies') `

Page 16: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Destination 'msExchUserHoldPolicies' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('onPremisesUserPrincipalName') `-Destination 'onPremisesUserPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherFacsimileTelephoneNumber') `-Destination 'otherFacsimileTelephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherHomePhone') `-Destination 'otherHomePhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherTelephone') `-Destination 'otherTelephone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('pager') `-Destination 'pager' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('physicalDeliveryOfficeName') `-Destination 'physicalDeliveryOfficeName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `

Page 17: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-SynchronizationRule $syncRule[0] `-Source @('postalCode') `-Destination 'postalCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('publicDelegates') `-Destination 'publicDelegates' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sn') `-Destination 'surname' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('st') `-Destination 'state' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('streetAddress') `-Destination 'streetAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('targetAddress') `-Destination 'targetAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 18: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('telephoneAssistant') `-Destination 'telephoneAssistant' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('telephoneNumber') `-Destination 'telephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('thumbnailPhoto') `-Destination 'thumbnailPhoto' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('title') `-Destination 'title' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userCertificate') `-Destination 'userCertificate' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userPrincipalName') `-Destination 'userPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userSMIMECertificate') `-Destination 'userSMIMECertificate' `-FlowType 'Direct' `-ValueMergeType 'Update' `

Page 19: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('unauthOrig') `-Destination 'unauthOrig' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('wWWHomePage') `-Destination 'wWWHomePage' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','User','EQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - User DynamicsCRM' `-Identifier '918bcc1c-0859-414f-b68a-787dfc7798c3' `-Description '' `-Direction 'Outbound' `-Precedence 118 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'user' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADUserDynamicsCRM.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `

Page 20: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-SynchronizationRule $syncRule[0] `-Source @('accountEnabled') `-Destination 'accountEnabled' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('l') `-Destination 'city' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('co') `-Destination 'country' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('company') `-Destination 'company' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('countryCode') `-Destination 'countryCode' `-FlowType 'Expression' `-ValueMergeType 'Update' `-Expression 'IIF(IsNullOrEmpty([countryCode]),IgnoreThisFlow,[countryCode])' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 21: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('facsimileTelephoneNumber') `-Destination 'facsimileTelephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('givenName') `-Destination 'givenName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('manager') `-Destination 'manager' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mobile') `-Destination 'mobile' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('onPremisesUserPrincipalName') `-Destination 'onPremisesUserPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('physicalDeliveryOfficeName') `-Destination 'physicalDeliveryOfficeName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('postalCode') `-Destination 'postalCode' `-FlowType 'Direct' `

Page 22: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('preferredLanguage') `-Destination 'preferredLanguage' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('st') `-Destination 'state' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('streetAddress') `-Destination 'streetAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sn') `-Destination 'surname' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('telephoneNumber') `-Destination 'telephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('title') `-Destination 'title' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userPrincipalName') `

Page 23: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Destination 'userPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','User','EQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - User Intune' `-Identifier '741f26d4-4633-4add-ad7b-7cf49d45866a' `-Description '' `-Direction 'Outbound' `-Precedence 119 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'user' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADUserIntune.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('accountEnabled') `-Destination 'accountEnabled' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 24: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mail') `-Destination 'mail' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('onPremisesUserPrincipalName') `-Destination 'onPremisesUserPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userPrincipalName') `-Destination 'userPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','User','EQUAL' `-OutVariable condition0

Page 25: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - User LyncOnline' `-Identifier 'e333a5f4-f520-4b55-b268-92df6f2c54c6' `-Description '' `-Direction 'Outbound' `-Precedence 120 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'user' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADUserLyncOnline.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('accountEnabled') `-Destination 'accountEnabled' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('l') `-Destination 'city' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('co') `-Destination 'country' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 26: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('company') `-Destination 'company' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('department') `-Destination 'department' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('facsimileTelephoneNumber') `-Destination 'facsimileTelephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('givenName') `-Destination 'givenName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('homePhone') `-Destination 'homePhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 27: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('ipPhone') `-Destination 'ipPhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mail') `-Destination 'mail' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('manager') `-Destination 'manager' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mobile') `-Destination 'mobile' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchHideFromAddressLists') `-Destination 'msExchHideFromAddressLists' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msRTCSIP-ApplicationOptions') `-Destination 'msRtcSipApplicationOptions' `-FlowType 'Direct' `

Page 28: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msRTCSIP-DeploymentLocator') `-Destination 'msRtcSipDeploymentLocator' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msRTCSIP-Line') `-Destination 'msRtcSipLine' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msRTCSIP-OwnerUrn') `-Destination 'msRtcSipOwnerUrn' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msRTCSIP-PrimaryUserAddress') `-Destination 'msRtcSipPrimaryUserAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msRTCSIP-UserEnabled') `-Destination 'msRtcSipUserEnabled' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msRTCSIP-OptionFlags') `-Destination 'msRtcSipOptionFlags' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('onPremisesUserPrincipalName') `

Page 29: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Destination 'onPremisesUserPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherTelephone') `-Destination 'otherTelephone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('physicalDeliveryOfficeName') `-Destination 'physicalDeliveryOfficeName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('postalCode') `-Destination 'postalCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('preferredLanguage') `-Destination 'preferredLanguage' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('st') `-Destination 'state' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `

Page 30: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-SynchronizationRule $syncRule[0] `-Source @('streetAddress') `-Destination 'streetAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sn') `-Destination 'surname' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('telephoneNumber') `-Destination 'telephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('thumbnailPhoto') `-Destination 'thumbnailPhoto' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('title') `-Destination 'title' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userPrincipalName') `-Destination 'userPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('wWWHomePage') `-Destination 'wWWHomePage' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 31: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','User','EQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - User SharePointOnline' `-Identifier 'e7318789-6301-4ca7-93c6-3afd688995c5' `-Description '' `-Direction 'Outbound' `-Precedence 121 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'user' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADUserSharePointOnline.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('accountEnabled') `-Destination 'accountEnabled' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('authOrig') `-Destination 'authOrig' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('l') `

Page 32: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Destination 'city' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('company') `-Destination 'company' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('co') `-Destination 'country' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('countryCode') `-Destination 'countryCode' `-FlowType 'Expression' `-ValueMergeType 'Update' `-Expression 'IIF(IsNullOrEmpty([countryCode]),IgnoreThisFlow,[countryCode])' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('department') `-Destination 'department' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 33: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('dLMemRejectPerms') `-Destination 'dLMemRejectPerms' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('dLMemSubmitPerms') `-Destination 'dLMemSubmitPerms' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute1') `-Destination 'extensionAttribute1' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute10') `-Destination 'extensionAttribute10' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute11') `-Destination 'extensionAttribute11' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute12') `-Destination 'extensionAttribute12' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute13') `-Destination 'extensionAttribute13' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 34: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute14') `-Destination 'extensionAttribute14' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute15') `-Destination 'extensionAttribute15' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute2') `-Destination 'extensionAttribute2' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute3') `-Destination 'extensionAttribute3' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute4') `-Destination 'extensionAttribute4' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute5') `-Destination 'extensionAttribute5' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute6') `-Destination 'extensionAttribute6' `-FlowType 'Direct' `

Page 35: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute7') `-Destination 'extensionAttribute7' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute8') `-Destination 'extensionAttribute8' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute9') `-Destination 'extensionAttribute9' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('facsimileTelephoneNumber') `-Destination 'facsimileTelephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('givenName') `-Destination 'givenName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('homePhone') `-Destination 'homePhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('info') `

Page 36: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Destination 'info' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('initials') `-Destination 'initials' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('ipPhone') `-Destination 'ipPhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mail') `-Destination 'mail' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('manager') `-Destination 'manager' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('middleName') `-Destination 'middleName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `

Page 37: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-SynchronizationRule $syncRule[0] `-Source @('mobile') `-Destination 'mobile' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchTeamMailboxExpiration') `-Destination 'msExchTeamMailboxExpiration' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchTeamMailboxOwners') `-Destination 'msExchTeamMailboxOwners' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchTeamMailboxSharePointLinkedBy') `-Destination 'msExchTeamMailboxSharePointLinkedBy' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchTeamMailboxSharePointUrl') `-Destination 'msExchTeamMailboxSharePointUrl' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('onPremisesUserPrincipalName') `-Destination 'onPremisesUserPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherFacsimileTelephoneNumber') `-Destination 'otherFacsimileTelephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 38: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherHomePhone') `-Destination 'otherHomePhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherIpPhone') `-Destination 'otherIpPhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherMobile') `-Destination 'otherMobile' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherPager') `-Destination 'otherPager' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherTelephone') `-Destination 'otherTelephone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('pager') `-Destination 'pager' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('physicalDeliveryOfficeName') `-Destination 'physicalDeliveryOfficeName' `-FlowType 'Direct' `-ValueMergeType 'Update' `

Page 39: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('postalCode') `-Destination 'postalCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('postOfficeBox') `-Destination 'postOfficeBox' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('preferredLanguage') `-Destination 'preferredLanguage' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('st') `-Destination 'state' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('streetAddress') `-Destination 'streetAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sn') `-Destination 'surname' `

Page 40: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('targetAddress') `-Destination 'targetAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('telephoneAssistant') `-Destination 'telephoneAssistant' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('telephoneNumber') `-Destination 'telephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('thumbnailPhoto') `-Destination 'thumbnailPhoto' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('title') `-Destination 'title' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('unauthOrig') `-Destination 'unauthOrig' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `

Page 41: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Source @('url') `-Destination 'url' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userPrincipalName') `-Destination 'userPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('wWWHomePage') `-Destination 'wWWHomePage' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','User','EQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - User AzureRMS' `-Identifier 'a0722527-530a-4bc1-a74c-c98f04d002e7' `-Description 'Minimal set of attributes required for Azure RMS.' `-Direction 'Outbound' `-Precedence 122 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'user' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADUserAzureRMS.004' `

Page 42: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mail') `-Destination 'mail' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('onPremisesUserPrincipalName') `-Destination 'onPremisesUserPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userPrincipalName') `-Destination 'userPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','User','EQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `

Page 43: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Contact Join' `-Identifier 'd80bdd23-4d85-414c-87e6-a7a3cc1ce035' `-Description '' `-Direction 'Outbound' `-Precedence 123 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'contact' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Provision' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADContactJoin.003' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('cloudSourceAnchor','sourceAnchor') `-Destination 'sourceAnchor' `-FlowType 'Expression' `-ValueMergeType 'Update' `-Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word([cloudAnchor],1,"_")=[sourceObjectType],IIF([cloudSourceAnchor] = [sourceAnchor],[sourceAnchor],Error("SourceAnchor attribute has changed.")),[sourceAnchor]),[sourceAnchor])' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sourceAnchor') `-Destination 'dn' `-FlowType 'Expression' `-ValueMergeType 'Update' `-Expression '"CN={" & ConvertToUTF8Hex([sourceAnchor]) & "}"' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','Contact','EQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudFiltered','True','NOTEQUAL' `-OutVariable condition1

New-Object `

Page 44: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'mailEnabled','True','EQUAL' `-OutVariable condition2

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0],$condition2[0]) `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.JoinCondition' `-ArgumentList 'sourceAnchor','sourceAnchor',$false `-OutVariable condition0

Add-ADSyncJoinConditionGroup `-SynchronizationRule $syncRule[0] `-JoinConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Contact Identity' `-Identifier 'd27eded2-367a-4f0a-87a5-58ad16f5d743' `-Description 'Minimal attributes required for the Contact object' `-Direction 'Outbound' `-Precedence 124 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'contact' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADContactIdentity.003' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 45: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('givenName') `-Destination 'givenName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sn') `-Destination 'surname' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','Contact','EQUAL' `-OutVariable condition0

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Contact ExchangeOnline' `-Identifier 'ddd42bed-54a2-4b94-9ac3-61bcf0dc7e82' `-Description '' `-Direction 'Outbound' `-Precedence 125 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'contact' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADContactExchangeOnline.003' `-OutVariable syncRule

Page 46: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('assistant') `-Destination 'assistant' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('authOrig') `-Destination 'authOrig' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('l') `-Destination 'city' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('c') `-Destination 'countryLetterCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('co') `-Destination 'country' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('company') `-Destination 'company' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('countryCode') `-Destination 'countryCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 47: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('department') `-Destination 'department' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('dLMemRejectPerms') `-Destination 'dLMemRejectPerms' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('dLMemSubmitPerms') `-Destination 'dLMemSubmitPerms' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute1') `-Destination 'extensionAttribute1' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute10') `-Destination 'extensionAttribute10' `-FlowType 'Direct' `

Page 48: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute11') `-Destination 'extensionAttribute11' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute12') `-Destination 'extensionAttribute12' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute13') `-Destination 'extensionAttribute13' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute14') `-Destination 'extensionAttribute14' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute15') `-Destination 'extensionAttribute15' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute2') `-Destination 'extensionAttribute2' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute3') `

Page 49: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Destination 'extensionAttribute3' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute4') `-Destination 'extensionAttribute4' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute5') `-Destination 'extensionAttribute5' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute6') `-Destination 'extensionAttribute6' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute7') `-Destination 'extensionAttribute7' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute8') `-Destination 'extensionAttribute8' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute9') `-Destination 'extensionAttribute9' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `

Page 50: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-SynchronizationRule $syncRule[0] `-Source @('facsimileTelephoneNumber') `-Destination 'facsimileTelephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('givenName') `-Destination 'givenName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('homePhone') `-Destination 'homePhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('info') `-Destination 'info' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('initials') `-Destination 'initials' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('legacyExchangeDN') `-Destination 'legacyExchangeDN' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 51: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('manager') `-Destination 'manager' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mobile') `-Destination 'mobile' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msDS-HABSeniorityIndex') `-Destination 'msDsHabSeniorityIndex' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msDS-PhoneticDisplayName') `-Destination 'msDsPhoneticDisplayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchAssistantName') `-Destination 'msExchAssistantName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchBlockedSendersHash') `-Destination 'msExchBlockedSendersHash' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute1') `-Destination 'msExchExtensionCustomAttribute1' `-FlowType 'Direct' `-ValueMergeType 'Update' `

Page 52: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute2') `-Destination 'msExchExtensionCustomAttribute2' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute3') `-Destination 'msExchExtensionCustomAttribute3' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute4') `-Destination 'msExchExtensionCustomAttribute4' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute5') `-Destination 'msExchExtensionCustomAttribute5' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchHideFromAddressLists') `-Destination 'msExchHideFromAddressLists' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchLitigationHoldDate') `-Destination 'msExchLitigationHoldDate' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchLitigationHoldOwner') `-Destination 'msExchLitigationHoldOwner' `

Page 53: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchModeratedByLink') `-Destination 'msExchModeratedByLink' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchModerationFlags') `-Destination 'msExchModerationFlags' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRecipientDisplayType') `-Destination 'msExchRecipientDisplayType' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRecipientTypeDetails') `-Destination 'msExchRecipientTypeDetails' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRequireAuthToSendTo') `-Destination 'msExchRequireAuthToSendTo' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRetentionComment') `-Destination 'msExchRetentionComment' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `

Page 54: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Source @('msExchRetentionURL') `-Destination 'msExchRetentionUrl' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchSafeSendersHash') `-Destination 'msExchSafeSendersHash' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchSafeRecipientsHash') `-Destination 'msExchSafeRecipientsHash' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchSenderHintTranslations') `-Destination 'msExchSenderHintTranslations' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherFacsimileTelephoneNumber') `-Destination 'otherFacsimileTelephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherHomePhone') `-Destination 'otherHomePhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherTelephone') `-Destination 'otherTelephone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 55: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('pager') `-Destination 'pager' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('physicalDeliveryOfficeName') `-Destination 'physicalDeliveryOfficeName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('postalCode') `-Destination 'postalCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('publicDelegates') `-Destination 'publicDelegates' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sn') `-Destination 'surname' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('st') `-Destination 'state' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 56: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('streetAddress') `-Destination 'streetAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('targetAddress') `-Destination 'targetAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('telephoneAssistant') `-Destination 'telephoneAssistant' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('telephoneNumber') `-Destination 'telephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('thumbnailPhoto') `-Destination 'thumbnailPhoto' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('title') `-Destination 'title' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('unauthOrig') `-Destination 'unauthOrig' `-FlowType 'Direct' `

Page 57: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userCertificate') `-Destination 'userCertificate' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userSMIMECertificate') `-Destination 'userSMIMECertificate' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('wWWHomePage') `-Destination 'wWWHomePage' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','Contact','EQUAL' `-OutVariable condition0

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Contact DynamicsCRM' `-Identifier '014660ae-86e3-478d-bdbc-19ddebf8ea5f' `-Description '' `-Direction 'Outbound' `-Precedence 126 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'contact' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADContactDynamicsCRM.003' `

Page 58: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('c') `-Destination 'countryLetterCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('co') `-Destination 'country' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('company') `-Destination 'company' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('countryCode') `-Destination 'countryCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('facsimileTelephoneNumber') `-Destination 'facsimileTelephoneNumber' `

Page 59: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('givenName') `-Destination 'givenName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mobile') `-Destination 'mobile' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('physicalDeliveryOfficeName') `-Destination 'physicalDeliveryOfficeName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('postalCode') `-Destination 'postalCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sn') `-Destination 'surname' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('postalAddress') `-Destination 'state' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `

Page 60: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Source @('streetAddress') `-Destination 'streetAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('telephoneNumber') `-Destination 'telephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('title') `-Destination 'title' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','Contact','EQUAL' `-OutVariable condition0

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Contact Intune' `-Identifier '8181bf55-0a75-41be-97b9-6f6053dfb1d4' `-Description '' `-Direction 'Outbound' `-Precedence 127 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'contact' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADContactIntune.003' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `

Page 61: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('c') `-Destination 'countryLetterCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','Contact','EQUAL' `-OutVariable condition0

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Contact LyncOnline' `-Identifier 'e71f3f16-9170-434d-a0ad-79fe18d348ac' `

Page 62: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Description '' `-Direction 'Outbound' `-Precedence 128 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'contact' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADContactLyncOnline.003' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('c') `-Destination 'countryLetterCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('co') `-Destination 'country' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('company') `-Destination 'company' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('department') `-Destination 'department' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `

Page 63: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('facsimileTelephoneNumber') `-Destination 'facsimileTelephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('givenName') `-Destination 'givenName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('homePhone') `-Destination 'homePhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mobile') `-Destination 'mobile' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchHideFromAddressLists') `-Destination 'msExchHideFromAddressLists' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 64: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherTelephone') `-Destination 'otherTelephone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('physicalDeliveryOfficeName') `-Destination 'physicalDeliveryOfficeName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('postalCode') `-Destination 'postalCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sn') `-Destination 'surname' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('st') `-Destination 'state' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('streetAddress') `-Destination 'streetAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 65: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('telephoneNumber') `-Destination 'telephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('thumbnailPhoto') `-Destination 'thumbnailPhoto' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('title') `-Destination 'title' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('wWWHomePage') `-Destination 'wWWHomePage' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','Contact','EQUAL' `-OutVariable condition0

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Contact SharePointOnline' `-Identifier '83a6b929-88f2-46ee-ba1b-e7389eb20978' `-Description '' `-Direction 'Outbound' `-Precedence 129 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `

Page 66: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'contact' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADContactSharePointOnline.003' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('authOrig') `-Destination 'authOrig' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('company') `-Destination 'company' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('co') `-Destination 'country' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('countryCode') `-Destination 'countryCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('c') `-Destination 'countryLetterCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `

Page 67: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('l') `-Destination 'city' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('department') `-Destination 'department' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('dLMemRejectPerms') `-Destination 'dLMemRejectPerms' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('dLMemSubmitPerms') `-Destination 'dLMemSubmitPerms' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute1') `-Destination 'extensionAttribute1' `

Page 68: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute10') `-Destination 'extensionAttribute10' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute11') `-Destination 'extensionAttribute11' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute12') `-Destination 'extensionAttribute12' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute13') `-Destination 'extensionAttribute13' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute14') `-Destination 'extensionAttribute14' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute15') `-Destination 'extensionAttribute15' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `

Page 69: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Source @('extensionAttribute2') `-Destination 'extensionAttribute2' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute3') `-Destination 'extensionAttribute3' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute4') `-Destination 'extensionAttribute4' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute5') `-Destination 'extensionAttribute5' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute6') `-Destination 'extensionAttribute6' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute7') `-Destination 'extensionAttribute7' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute8') `-Destination 'extensionAttribute8' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 70: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute9') `-Destination 'extensionAttribute9' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('facsimileTelephoneNumber') `-Destination 'facsimileTelephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('givenName') `-Destination 'givenName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('homePhone') `-Destination 'homePhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('info') `-Destination 'info' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('initials') `-Destination 'initials' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('ipPhone') `-Destination 'ipPhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 71: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mail') `-Destination 'mail' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('manager') `-Destination 'manager' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('middleName') `-Destination 'middleName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mobile') `-Destination 'mobile' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherFacsimileTelephoneNumber') `-Destination 'otherFacsimileTelephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherHomePhone') `-Destination 'otherHomePhone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherIpPhone') `-Destination 'otherIpPhone' `-FlowType 'Direct' `

Page 72: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherMobile') `-Destination 'otherMobile' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherPager') `-Destination 'otherPager' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('otherTelephone') `-Destination 'otherTelephone' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('pager') `-Destination 'pager' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('physicalDeliveryOfficeName') `-Destination 'physicalDeliveryOfficeName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('postalCode') `-Destination 'postalCode' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('postOfficeBox') `

Page 73: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Destination 'postOfficeBox' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sn') `-Destination 'surname' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('st') `-Destination 'state' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('streetAddress') `-Destination 'streetAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('targetAddress') `-Destination 'targetAddress' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('telephoneAssistant') `-Destination 'telephoneAssistant' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `

Page 74: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-SynchronizationRule $syncRule[0] `-Source @('telephoneNumber') `-Destination 'telephoneNumber' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('thumbnailPhoto') `-Destination 'thumbnailPhoto' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('title') `-Destination 'title' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('unauthOrig') `-Destination 'unauthOrig' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('url') `-Destination 'url' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('wWWHomePage') `-Destination 'wWWHomePage' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','Contact','EQUAL' `-OutVariable condition0

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `

Page 75: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-ScopeConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Contact AzureRMS' `-Identifier '1fdb0c71-d36b-40d1-9515-4eabc863ee8f' `-Description 'Minimal set of attributes required for Azure RMS.' `-Direction 'Outbound' `-Precedence 130 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'contact' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADContactAzureRMS.003' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mail') `-Destination 'mail' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','Contact','EQUAL' `-OutVariable condition0

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Group Join' `

Page 76: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Identifier '6fabe118-46f5-4263-bb6c-f5700e4c80b6' `-Description '' `-Direction 'Outbound' `-Precedence 131 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'group' `-TargetObjectType 'group' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Provision' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADGroupJoin.006' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('cn') `-Destination 'commonName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sourceAnchor') `-Destination 'dn' `-FlowType 'Expression' `-ValueMergeType 'Update' `-Expression '"CN={" & ConvertToUTF8Hex([sourceAnchor]) & "}"' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('member') `-Destination 'member' `-FlowType 'Expression' `-ValueMergeType 'Update' `-Expression 'IIF(([memberCount]> 50000),Error("Maximum Group member count exceeded"),IgnoreThisFlow)' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('objectSid') `-Destination 'onPremiseSecurityIdentifier' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('cloudSourceAnchor','sourceAnchor') `-Destination 'sourceAnchor' `-FlowType 'Expression' `-ValueMergeType 'Update' `

Page 77: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Expression 'IIF(IsPresent([cloudSourceAnchor]),IIF([cloudSourceAnchor] = [sourceAnchor],[sourceAnchor],Error("SourceAnchor attribute has changed.")),[sourceAnchor])' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('securityEnabled') `-Destination 'securityEnabled' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudFiltered','True','NOTEQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceAnchor','','ISNOTNULL' `-OutVariable condition1

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition2

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'securityEnabled','True','EQUAL' `-OutVariable condition3

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudAnchor','','ISNOTNULL' `-OutVariable condition4

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0],$condition2[0],$condition3[0],$condition4[0]) `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudFiltered','True','NOTEQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceAnchor','','ISNOTNULL' `-OutVariable condition1

Page 78: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition2

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'securityEnabled','True','EQUAL' `-OutVariable condition3

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'memberCount','50000','LESSTHAN' `-OutVariable condition4

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0],$condition2[0],$condition3[0],$condition4[0]) `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudFiltered','True','NOTEQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceAnchor','','ISNOTNULL' `-OutVariable condition1

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition2

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'mailEnabled','True','EQUAL' `-OutVariable condition3

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudAnchor','','ISNOTNULL' `-OutVariable condition4

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0],$condition2[0],$condition3[0],$condition4[0]) `-OutVariable syncRule

Page 79: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudFiltered','True','NOTEQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceAnchor','','ISNOTNULL' `-OutVariable condition1

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition2

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'mailEnabled','True','EQUAL' `-OutVariable condition3

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'memberCount','50000','LESSTHAN' `-OutVariable condition4

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0],$condition2[0],$condition3[0],$condition4[0]) `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.JoinCondition' `-ArgumentList 'sourceAnchor','sourceAnchor',$false `-OutVariable condition0

Add-ADSyncJoinConditionGroup `-SynchronizationRule $syncRule[0] `-JoinConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Group Identity' `-Identifier 'b0143075-9ef1-47e4-a90c-7899f6dcd0e7' `-Description '' `-Direction 'Outbound' `-Precedence 132 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'group' `

Page 80: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-TargetObjectType 'group' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADGroupIdentity.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mail') `-Destination 'mail' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('managedBy') `-Destination 'managedBy' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('member') `-Destination 'member' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 81: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceAnchor','','ISNOTNULL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.JoinCondition' `-ArgumentList 'sourceAnchor','sourceAnchor',$false `-OutVariable condition0

Add-ADSyncJoinConditionGroup `-SynchronizationRule $syncRule[0] `-JoinConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Group ExchangeOnline' `-Identifier 'e0e8d81c-6f5a-456a-b61f-d3f2b8bf3f1e' `-Description '' `-Direction 'Outbound' `-Precedence 133 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'group' `-TargetObjectType 'group' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADGroupExchangeOnline.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 82: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('authOrig') `-Destination 'authOrig' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('dLMemRejectPerms') `-Destination 'dLMemRejectPerms' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute1') `-Destination 'extensionAttribute1' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute2') `-Destination 'extensionAttribute2' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute3') `-Destination 'extensionAttribute3' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 83: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute4') `-Destination 'extensionAttribute4' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute5') `-Destination 'extensionAttribute5' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute6') `-Destination 'extensionAttribute6' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute7') `-Destination 'extensionAttribute7' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute8') `-Destination 'extensionAttribute8' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute9') `-Destination 'extensionAttribute9' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute10') `-Destination 'extensionAttribute10' `-FlowType 'Direct' `

Page 84: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute11') `-Destination 'extensionAttribute11' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute12') `-Destination 'extensionAttribute12' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute13') `-Destination 'extensionAttribute13' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute14') `-Destination 'extensionAttribute14' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute15') `-Destination 'extensionAttribute15' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('info') `-Destination 'info' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('legacyExchangeDN') `

Page 85: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Destination 'legacyExchangeDN' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('managedBy') `-Destination 'managedBy' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('member') `-Destination 'member' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msDS-HABSeniorityIndex') `-Destination 'msDsHabSeniorityIndex' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msDS-PhoneticDisplayName') `-Destination 'msDsPhoneticDisplayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchCoManagedByLink') `-Destination 'msExchCoManagedByLink' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchEnableModeration') `-Destination 'msExchEnableModeration' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `

Page 86: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute1') `-Destination 'msExchExtensionCustomAttribute1' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute2') `-Destination 'msExchExtensionCustomAttribute2' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute3') `-Destination 'msExchExtensionCustomAttribute3' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute4') `-Destination 'msExchExtensionCustomAttribute4' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchExtensionCustomAttribute5') `-Destination 'msExchExtensionCustomAttribute5' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchHideFromAddressLists') `-Destination 'msExchHideFromAddressLists' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchLitigationHoldDate') `-Destination 'msExchLitigationHoldDate' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 87: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchLitigationHoldOwner') `-Destination 'msExchLitigationHoldOwner' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchModeratedByLink') `-Destination 'msExchModeratedByLink' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchModerationFlags') `-Destination 'msExchModerationFlags' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRecipientDisplayType') `-Destination 'msExchRecipientDisplayType' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRecipientTypeDetails') `-Destination 'msExchRecipientTypeDetails' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRequireAuthToSendTo') `-Destination 'msExchRequireAuthToSendTo' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRetentionComment') `-Destination 'msExchRetentionComment' `-FlowType 'Direct' `-ValueMergeType 'Update' `

Page 88: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchRetentionURL') `-Destination 'msExchRetentionUrl' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchSenderHintTranslations') `-Destination 'msExchSenderHintTranslations' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msOrg-IsOrganizational') `-Destination 'msOrgIsOrganizational' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('oOFReplyToOriginator') `-Destination 'oOFReplyToOriginator' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('publicDelegates') `-Destination 'publicDelegates' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('reportToOriginator') `-Destination 'reportToOriginator' `

Page 89: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('reportToOwner') `-Destination 'reportToOwner' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('unauthOrig') `-Destination 'unauthOrig' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceAnchor','','ISNOTNULL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.JoinCondition' `-ArgumentList 'sourceAnchor','sourceAnchor',$false `-OutVariable condition0

Add-ADSyncJoinConditionGroup `-SynchronizationRule $syncRule[0] `-JoinConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Group DynamicsCRM' `-Identifier '619a8797-f113-459a-a1dd-0ee2196cc2e6' `-Description '' `

Page 90: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Direction 'Outbound' `-Precedence 134 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'group' `-TargetObjectType 'group' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADGroupDynamicsCRM.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('managedBy') `-Destination 'managedBy' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('member') `-Destination 'member' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceAnchor','','ISNOTNULL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Page 91: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.JoinCondition' `-ArgumentList 'sourceAnchor','sourceAnchor',$false `-OutVariable condition0

Add-ADSyncJoinConditionGroup `-SynchronizationRule $syncRule[0] `-JoinConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Group Intune' `-Identifier '6c1022fc-4713-402b-82a5-146255b535b5' `-Description '' `-Direction 'Outbound' `-Precedence 135 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'group' `-TargetObjectType 'group' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADGroupIntune.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `

Page 92: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mail') `-Destination 'mail' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('member') `-Destination 'member' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceAnchor','','ISNOTNULL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.JoinCondition' `-ArgumentList 'sourceAnchor','sourceAnchor',$false `-OutVariable condition0

Add-ADSyncJoinConditionGroup `-SynchronizationRule $syncRule[0] `-JoinConditions @($condition0[0]) `-OutVariable syncRule

Page 93: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Group LyncOnline' `-Identifier '3d61d83e-6d2a-41eb-9daf-ebd42cda0471' `-Description '' `-Direction 'Outbound' `-Precedence 136 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'group' `-TargetObjectType 'group' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADGroupLyncOnline.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mail') `-Destination 'mail' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('managedBy') `

Page 94: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Destination 'managedBy' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('member') `-Destination 'member' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('msExchHideFromAddressLists') `-Destination 'msExchHideFromAddressLists' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceAnchor','','ISNOTNULL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.JoinCondition' `-ArgumentList 'sourceAnchor','sourceAnchor',$false `-OutVariable condition0

Add-ADSyncJoinConditionGroup `-SynchronizationRule $syncRule[0] `-JoinConditions @($condition0[0]) `-OutVariable syncRule

Page 95: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Group SharePointOnline' `-Identifier '573a2844-d6ab-4d64-8853-bdcc319b0dd9' `-Description '' `-Direction 'Outbound' `-Precedence 137 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'group' `-TargetObjectType 'group' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADGroupSharePointOnline.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mailNickname') `-Destination 'alias' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('authOrig') `-Destination 'authOrig' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('description') `-Destination 'description' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `

Page 96: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-Source @('dLMemRejectPerms') `-Destination 'dLMemRejectPerms' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('dLMemSubmitPerms') `-Destination 'dLMemSubmitPerms' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute1') `-Destination 'extensionAttribute1' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute2') `-Destination 'extensionAttribute2' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute3') `-Destination 'extensionAttribute3' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute4') `-Destination 'extensionAttribute4' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute5') `-Destination 'extensionAttribute5' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 97: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute6') `-Destination 'extensionAttribute6' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute7') `-Destination 'extensionAttribute7' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute8') `-Destination 'extensionAttribute8' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute9') `-Destination 'extensionAttribute9' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute10') `-Destination 'extensionAttribute10' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute11') `-Destination 'extensionAttribute11' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute12') `-Destination 'extensionAttribute12' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Page 98: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute13') `-Destination 'extensionAttribute13' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute14') `-Destination 'extensionAttribute14' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('extensionAttribute15') `-Destination 'extensionAttribute15' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('hideDLMembership') `-Destination 'hideDLMembership' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('info') `-Destination 'info' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('managedBy') `-Destination 'managedBy' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mail') `-Destination 'mail' `-FlowType 'Direct' `

Page 99: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('member') `-Destination 'member' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('oOFReplyToOriginator') `-Destination 'oOFReplyToOriginator' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('reportToOriginator') `-Destination 'reportToOriginator' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('reportToOwner') `-Destination 'reportToOwner' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('unauthOrig') `-Destination 'unauthOrig' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceAnchor','','ISNOTNULL' `

Page 100: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.JoinCondition' `-ArgumentList 'sourceAnchor','sourceAnchor',$false `-OutVariable condition0

Add-ADSyncJoinConditionGroup `-SynchronizationRule $syncRule[0] `-JoinConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Group AzureRMS' `-Identifier '29288f6a-629c-411e-9b02-b9179cbe7d23' `-Description '' `-Direction 'Outbound' `-Precedence 138 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'group' `-TargetObjectType 'group' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADGroupAzureRMS.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('mail') `-Destination 'mail' `

Page 101: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('member') `-Destination 'member' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('proxyAddresses') `-Destination 'proxyAddresses' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition0

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - User OfficeProPlus' `-Identifier '0cf79eaa-a2ea-477b-9375-54e8e1b31ffc' `-Description '' `-Direction 'Outbound' `-Precedence 139 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'user' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADUserOfficeProPlus.004' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `

Page 102: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('onPremisesUserPrincipalName') `-Destination 'onPremisesUserPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userPrincipalName') `-Destination 'userPrincipalName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'sourceObjectType','User','EQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','True','NOTEQUAL' `-OutVariable condition1

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AD - User Join' `-Identifier '2901a7f0-27e3-4fd3-8d18-1343c97e126b' `-Description '' `-Direction 'Outbound' `-Precedence 140 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'person' `-TargetObjectType 'user' `-Connector '9792d5d0-7815-4880-85e2-3e5de264452e' `-LinkType 'Join' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoADUserJoinSOAInAD.004' `-OutVariable syncRule

Page 103: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudMastered','False','EQUAL' `-OutVariable condition0

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0]) `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.JoinCondition' `-ArgumentList 'objectGUID','sourceAnchorBinary',$false `-OutVariable condition0

Add-ADSyncJoinConditionGroup `-SynchronizationRule $syncRule[0] `-JoinConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]

New-ADSyncRule `-Name 'Out to AAD - Device Join SOAInAD' `-Identifier '42cc5fe9-b310-4382-abd7-6028ae3556e3' `-Description '' `-Direction 'Outbound' `-Precedence 142 `-PrecedenceAfter '00000000-0000-0000-0000-000000000000' `-PrecedenceBefore '00000000-0000-0000-0000-000000000000' `-SourceObjectType 'device' `-TargetObjectType 'device' `-Connector 'b891884f-051e-4a83-95af-2544101c9083' `-LinkType 'Provision' `-SoftDeleteExpiryInterval 0 `-ImmutableTag 'Microsoft.OuttoAADJoinSOAInAD.001' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('displayName') `-Destination 'displayName' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('sourceAnchor') `-Destination 'dn' `-FlowType 'Expression' `-ValueMergeType 'Update' `-Expression '"CN={" & ConvertToUTF8Hex([sourceAnchor]) & "}"' `

Page 104: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('deviceId') `-Destination 'deviceId' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('accountEnabled') `-Destination 'accountEnabled' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('approximateLastLogonTimestamp') `-Destination 'approximateLastLogonTimestamp' `-FlowType 'Expression' `-ValueMergeType 'Update' `-Expression 'IIF(IsPresent([approximateLastLogonTimestamp]),CStr(FormatDateTime(DateFromNum([approximateLastLogonTimestamp]),"yyyyMMddHHmmss.0Z")),NULL)' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('deviceObjectVersion') `-Destination 'deviceObjectVersion' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('deviceOSVersion') `-Destination 'deviceOSVersion' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('deviceOSType') `-Destination 'deviceOSType' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `

Page 105: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

-SynchronizationRule $syncRule[0] `-Source @('devicePhysicalIds') `-Destination 'devicePhysicalIds' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('registeredOwnerReference') `-Destination 'registeredOwnerReference' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('deviceTrustType') `-Destination 'deviceTrustType' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('objectSid') `-Destination 'onPremiseSecurityIdentifier' `-FlowType 'Direct' `-ValueMergeType 'Update' `-OutVariable syncRule

Add-ADSyncAttributeFlowMapping `-SynchronizationRule $syncRule[0] `-Source @('userCertificate') `-Destination 'userCertificate' `-FlowType 'Direct' `-ValueMergeType 'MergeCaseInsensitive' `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudCreated','false','EQUAL' `-OutVariable condition0

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'userCertificate','','ISNOTNULL' `-OutVariable condition1

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.ScopeCondition' `-ArgumentList 'cloudFiltered','true','NOTEQUAL' `-OutVariable condition2

Page 106: Web view15.10.2015 · -ValueMergeType 'Update' ` ... -Expression 'IIF(IsPresent([cloudSourceAnchor]), IIF(Word

Add-ADSyncScopeConditionGroup `-SynchronizationRule $syncRule[0] `-ScopeConditions @($condition0[0],$condition1[0],$condition2[0]) `-OutVariable syncRule

New-Object `-TypeName 'Microsoft.IdentityManagement.PowerShell.ObjectModel.JoinCondition' `-ArgumentList 'deviceId','deviceId',$false `-OutVariable condition0

Add-ADSyncJoinConditionGroup `-SynchronizationRule $syncRule[0] `-JoinConditions @($condition0[0]) `-OutVariable syncRule

Add-ADSyncRule `-SynchronizationRule $syncRule[0]