Mailboxen zwischen Forests verschieben

Aus abotpedia
Version vom 1. Dezember 2014, 15:04 Uhr von MWorschech (Diskussion | Beiträge) (Die Seite wurde neu angelegt: „Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -Identity “EWS (Default Web Site)” -MRSProxyEnabled $true -MRSProxyMaxConnections 50 $L…“)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -Identity “EWS (Default Web Site)” -MRSProxyEnabled $true -MRSProxyMaxConnections 50


$LocalCredentials = Get-Credential $RemoteCredentials = Get-Credential


.\Prepare-MoveRequest.ps1 -Identity "userid" -RemoteForestDomainController "srvmail.source.local" -RemoteForestCredential $RemoteCredentials -LocalForestDomainController "srvmail.target.local" -LocalForestCredential $LocalCredentials -TargetMailUserOU "OU=Users,DC=target,DC=local" -UseLocalObject -OverwriteLocalObject

New-MoveRequest -Identity "userid" -Remote -TargetDatabase “Mailbox Database 01″ -RemoteGlobalCatalog "srvdc.source.local" -RemoteCredential $RemoteCredentials -TargetDeliveryDomain "target.local" -RemoteHostName "srvmail.source.local"


$Users = Get-Content “users.csv”

Foreach ($User in $Users) {.\Prepare-MoveRequest.ps1 –Identity $User -RemoteForestDomainController "srvmail.source.local" -RemoteForestCredential $RemoteCredentials -LocalForestDomainController "srvmail.target.local" -LocalForestCredential $LocalCredentials -TargetMailUserOU "OU=Users,DC=target,DC=local" -UseLocalObject -OverwriteLocalObject}

Get-Content "users.csv" | New-MoveRequest -Remote -TargetDatabase “Mailbox Database 01″ -RemoteGlobalCatalog "srvdc.source.local" -RemoteCredential $RemoteCredentials -TargetDeliveryDomain "target.local" -RemoteHostName "srvmail.source.local"