O365: Unterschied zwischen den Versionen

Aus Meine Wiki
Zur Navigation springen Zur Suche springen
Zeile 4: Zeile 4:
 
  Start-ADSyncSyncCycle –PolicyType Delta
 
  Start-ADSyncSyncCycle –PolicyType Delta
 
:[https://docs.microsoft.com/de-de/microsoft-365/enterprise/prepare-a-non-routable-domain-for-directory-synchronization?redirectSourcePath=%252fen-us%252farticle%252fHow-to-prepare-a-non-routable-domain-such-as-local-domain-for-directory-synchronization-e7968303-c234-46c4-b8b0-b5c93c6d57a7&view=o365-worldwide#what-if-i-only-have-a-local-on-premises-domain UPN-Suffix für alle Benutzer]  
 
:[https://docs.microsoft.com/de-de/microsoft-365/enterprise/prepare-a-non-routable-domain-for-directory-synchronization?redirectSourcePath=%252fen-us%252farticle%252fHow-to-prepare-a-non-routable-domain-such-as-local-domain-for-directory-synchronization-e7968303-c234-46c4-b8b0-b5c93c6d57a7&view=o365-worldwide#what-if-i-only-have-a-local-on-premises-domain UPN-Suffix für alle Benutzer]  
  Wählen Sie auf der Registerkarte "Konto" in der Dropdownliste des UPN-Suffixes das neue UPN-Suffix aus
+
  Wählen Sie auf der Registerkarte "Konto" in der Dropdownliste des UPN-Suffixes das neue UPN-Suffix aus.
 +
:
 +
$LocalUsers = Get-ADUser -Filter "UserPrincipalName -like '*contoso.local'" -Properties userPrincipalName -ResultSetSize $null
 +
$LocalUsers | foreach {$newUpn = $_.UserPrincipalName.Replace("@contoso.local","@contoso.com"); $_ | Set-ADUser -UserPrincipalName $newUpn}

Version vom 11. September 2021, 09:35 Uhr

Lokales AD mit Office 365 synchronisieren
How to sync on promises AD tu Azure AD with Azure AD connect
Start-ADSyncSyncCycle –PolicyType Delta
UPN-Suffix für alle Benutzer
Wählen Sie auf der Registerkarte "Konto" in der Dropdownliste des UPN-Suffixes das neue UPN-Suffix aus. 
$LocalUsers = Get-ADUser -Filter "UserPrincipalName -like '*contoso.local'" -Properties userPrincipalName -ResultSetSize $null
$LocalUsers | foreach {$newUpn = $_.UserPrincipalName.Replace("@contoso.local","@contoso.com"); $_ | Set-ADUser -UserPrincipalName $newUpn}