Windows Thread, Cross Forest Migration from 2003 to 2007 in Technical; Hello,
I'm having a few issues with power shell and migrating a bulk of users from a forest in 2003 ...
-
10th March 2010, 01:40 PM #1 Cross Forest Migration from 2003 to 2007
Hello,
I'm having a few issues with power shell and migrating a bulk of users from a forest in 2003 to a forest 2007.
The two forests exist and there is a full trust between them, DNS has been set up so everyone can see everyone else.
The way I'm doing this is to migrate a user first using the migrate tool then the mailbox using this command:
$s=get-credential # (use your AD Account)
$t=get-credential # (use your CIG Account)
$s=Move-mailbox -TargetDatabase "MYMAIL07SERVER\First Storage Group\Mailbox Database" -BadItemLimit:"214" -identity "USER@OLD.DOMAIN" -GlobalCatalog NEWDC.DOMAIN.local -SourceForestGlobalCatalog OLDDC.DOMAIN.local -NTAccountOU "OU=BLAH,OU=BLAH,DC=NEWDOMAIN,DC=local" -MaxThreads 8 -SourceForestCredential $s -TargetForestCredential $t
Works perfectly but I want to use a csv (or text) to migrate users in bulk, so I migrated the user and entered the details into the csv file:
Username,
TL,
And used this script:
Import-CSV c:\scripts\users.csv | Get-Mailbox -Identity {$_.Username} | Move-Mailbox -TargetDatabase
"MYMAIL07SERVER\First Storage Group\Mailbox Database" -GlobalCatalog NEWDC.DOMAIN.local -SourceForestGlobalCatalog
OLDDC.DOMAIN.local -IgnorePolicyMatch -NTAccountOU "OU=BLAH,OU=BLAH,DC=NEWDOMAIN,DC=local" -BadItemLimit 214 -MaxThreads 10 -SourceForestCredential $SourceCredential -
TargetForestCredential $TargetCredential
But I keep getting the same error and have no idea what i'm doing wrong:
Get-Mailbox : The operation could not be performed because object 'TL' could no
t be found on domain controller 'NEWDC.DOMAIN.local '.
At C:\Scripts\MultipleMBmRD.ps1:1 char:46
+ Import-CSV c:\scripts\users.csv | Get-Mailbox <<<< -Identity {$_.Username} |
Move-Mailbox -TargetDatabase "MYMAIL07SERVER\First Storage Group\Mailbox Database"
-GlobalCatalog cigbridc02.cig.local -SourceForestGlobalCatalog bridc01.ad.broad
system -IgnorePolicyMatch -NTAccountOU "OU=Blah,OU=BLAH,DC=NEWDOMAIN,DC=local" -BadItemLimit 214 -MaxThreads 10 -SourceForestC
redential $SourceCredential -TargetForestCredential $TargetCredential
Any help would be really appreciated, thanks.
RobD
-
-
IDG Tech News
SHARE: 
Similar Threads
-
By bio in forum Windows Server 2008 R2
Replies: 4
Last Post: 19th March 2012, 08:58 AM
-
By pnlrogue1 in forum Windows Server 2008
Replies: 14
Last Post: 3rd December 2009, 03:14 PM
-
By tazz in forum Windows Server 2000/2003
Replies: 1
Last Post: 30th April 2009, 10:41 PM
-
By Diello in forum Windows
Replies: 0
Last Post: 6th March 2009, 03:53 PM
-
By ajbritton in forum Windows
Replies: 1
Last Post: 27th August 2006, 08:34 PM
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules