Petri.co.il forums by Daniel Petri  

Petri.co.il forums Home Forums Start Page Forums Frequently Asked Questions FAQ Member List Members List
Go Back   Petri.co.il forums by Daniel Petri > Messaging Software > Exchange 2007 / 2010
Petri.co.il is happy to award Virtual the title of Most Valuable Member !!!
Register Calendar Calendar Search Petri.co.il forums by Daniel Petri Search Today's Posts Mark Forums Read

Notices

IDEALSTOR
Inter-org mailbox migration

Inter-org mailbox migration

this thread has 0 replies and has been viewed 1188 times

Closed Thread
 
Thread Tools Search this Thread Display Modes
  #1  
Old 27th April 2009, 22:50
Killerbe's Avatar
Killerbe Killerbe is offline
Member
Here to help
 
 Join Date: Aug 2007
  6 month star 12 month star
 Location: Belgium
 Posts: 462
 Reputation: Killerbe will become famous soon enough (88)
Default Inter-org mailbox migration

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}
And when i look at it, it should do what i expect from it.
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
The csv is located in the same folder as the script, and the script is launched from the EMS (C:\Migration\Migmailbox.ps1). The operating system is Windows Server 2003, so there is no issue with elevation.

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
Closed Thread


Go Back
Petri.co.il forums by Daniel Petri > Messaging Software > Exchange 2007 / 2010


Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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



All times are GMT +3. The time now is 05:36.

Steel Blue Style vBulletin Style ©2006 vBEnhanced Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
 

Valid XHTML 1.0!   Valid CSS!

Copyright 2005 Daniel Petri