![]() |
|
|||||||
| Petri.co.il is happy to award Virtual the title of Most Valuable Member !!! |
| Register | Calendar |
Search |
Today's Posts | Mark Forums Read |
| Notices |
|
Inter-org mailbox migrationthis thread has 0 replies and has been viewed 1188 times
|
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
#1
|
||||||||||
|
||||||||||
|
Hi all,
I do not know if this is the correct spot here. But i want to use a powershell script along with an CSV to move my mailboxes between two forests (Consolidation). I am no scripting wonder myself, so found the script using google (Barath) and adjusted it to fit my needs. Code:
$Source = Get-Credential
$Target = Get-Credential
Import-CSV MoveMailboxes.csv | foreach {Move-Mailbox -Identity $_.Username -TargetDatabase $_.TargetDatabase -SourceForestGlobalCatalog "DC.domain.local" -GlobalCatalog "DC.domain.local" -SourceForestCredential $Source -TargetForestCredential $Target -SourceMailboxCleanupOptions MailEnableSourceAccount}
But when i launch the script , it only prompts for the credentials. And nothing else happens. The CSV contains: Username,"Exchangeserver\Storage Group\Mailbox database", Username,"Exchangeserver\VIP storage group\VIP database", Etc,Etc When i do a manual move, it works Code:
Move-Mailbox -Identity Username -TargetDatabase "ExchangeServer\Storage group\Mailbox Database" -SourceForestGlobalCatalog "DC.domain.local" -GlobalCatalog "DC.domain.local" -SourceForestCredential $Source -TargetForestCredential $Target -SourceMailboxCleanupOptions MailEnableSourceAccount What am i doing wrong?
__________________
[Powershell] Start-DayDream Set-Location Malibu Beach Get-Drink Lay-Back Start-Sleep .... Wake-Up! Resume-Service Write-Warning [/Powershell] BLOG: Therealshrimp.blogspot.com |
![]() |
|
||||||
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New domain migration whilst maintaining Exchange Org name | gabi_cavaller | Exchange 2007 / 2010 | 14 | 20th March 2009 02:14 |
| Domain migration - The local policy of this system does not permit you to logon inter | UKJoe | Windows Server 2000 / 2003 | 1 | 28th January 2009 12:38 |
| Inter-org Replication Tool from Exchange 2K3 on windows 2K3 server to exchange 2K7 on | kyriakos7 | Exchange 2007 / 2010 | 0 | 4th August 2008 15:38 |
| Exchange 2003 Intra-org migration when accounts exist in both domain | greggles | Exchange 2000 / 2003 | 0 | 28th August 2007 05:14 |
| Need to migrate mailbox contents from Exch2K - Exch2K3 Inter | msadexchman | Exchange 2000 / 2003 | 0 | 20th May 2005 17:00 |