Mailboxen zwischen Forests verschieben: Unterschied zwischen den Versionen
| Zeile 17: | Zeile 17: | ||
<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> | <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> | ||
| + | |||
| + | [[Category:Exchange]] | ||
Version vom 3. Dezember 2014, 11:59 Uhr
<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>