Mailboxen zwischen Forests verschieben

Aus abotpedia
Version vom 3. Dezember 2014, 12:10 Uhr von MWorschech (Diskussion | Beiträge)
(Unterschied) ← Nächstältere Version | Aktuelle Version (Unterschied) | Nächstjüngere Version → (Unterschied)
Wechseln zu: Navigation, Suche

<syntaxhighlight lang=powershell>Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -Identity “EWS (Default Web Site)” -MRSProxyEnabled $true -MRSProxyMaxConnections 50</syntaxhighlight>


<syntaxhighlight lang=powershell>$LocalCredentials = Get-Credential $RemoteCredentials = Get-Credential</syntaxhighlight>


<syntaxhighlight lang=powershell>.\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</syntaxhighlight>

<syntaxhighlight lang=powershell>New-MoveRequest -Identity "userid" -Remote -TargetDatabase “Mailbox Database 01″ -RemoteGlobalCatalog "srvdc.source.local" -RemoteCredential $RemoteCredentials -TargetDeliveryDomain "target.local" -RemoteHostName "srvmail.source.local"</syntaxhighlight>


<syntaxhighlight lang=powershell>$Users = Get-Content “users.csv”</syntaxhighlight>

<syntaxhighlight lang=powershell>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}</syntaxhighlight>

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