Mailboxen zwischen Forests verschieben: Unterschied zwischen den Versionen

Aus abotpedia
Wechseln zu: Navigation, Suche
(Die Seite wurde neu angelegt: „Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -Identity “EWS (Default Web Site)” -MRSProxyEnabled $true -MRSProxyMaxConnections 50 $L…“)
 
 
(2 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt)
Zeile 1: Zeile 1:
Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -Identity “EWS (Default Web Site)” -MRSProxyEnabled $true -MRSProxyMaxConnections 50
+
<syntaxhighlight lang=powershell>Get-WebServicesVirtualDirectory | Set-WebServicesVirtualDirectory -Identity “EWS (Default Web Site)” -MRSProxyEnabled $true -MRSProxyMaxConnections 50</syntaxhighlight>
  
  
$LocalCredentials = Get-Credential
+
<syntaxhighlight lang=powershell>$LocalCredentials = Get-Credential
$RemoteCredentials = Get-Credential
+
$RemoteCredentials = Get-Credential</syntaxhighlight>
  
  
.\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 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>
  
New-MoveRequest -Identity "userid" -Remote -TargetDatabase “Mailbox Database 01″ -RemoteGlobalCatalog "srvdc.source.local" -RemoteCredential $RemoteCredentials -TargetDeliveryDomain "target.local" -RemoteHostName "srvmail.source.local"
+
<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>
  
  
  
$Users = Get-Content “users.csv”
+
<syntaxhighlight lang=powershell>$Users = Get-Content “users.csv”</syntaxhighlight>
  
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 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>
  
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 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]]

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>