Mailboxen zwischen Forests verschieben: Unterschied zwischen den Versionen

Aus abotpedia
Wechseln zu: Navigation, Suche
 
Zeile 18: Zeile 18:
 
<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:Software]]
 
[[Category:Exchange]]
 
[[Category:Exchange]]

Aktuelle Version vom 3. Dezember 2014, 12:10 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>