+ Post New Thread
Results 1 to 14 of 14
How do you do....it? Thread, Whats the easiest way ??? in Technical; I have just built a new Exchange 2010 Server and all is working very well, however our old exchange server ...
  1. #1
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,493
    Thank Post
    519
    Thanked 290 Times in 266 Posts
    Rep Power
    82

    Whats the easiest way ???

    I have just built a new Exchange 2010 Server and all is working very well, however our old exchange server is ready to fall over!

    I am wondering what is the easiest way to move all of the users from the old server to the new server, both servers being on 2 different domains but on the same network! I have tried looking at a Remote Move Request BUT Exchange insists I add my new server in the old servers forest but I don't know whether this will break anything i.e not being able to send/receive emails by either server.

    First time I've done this and If I'm honest this is the bit I'm scared of I need to move the users off of the old server along with there entire mailbox and messages over to the new server.

    Any body got any tips ?

  2. #2

    Join Date
    Mar 2011
    Location
    Bournemouth
    Posts
    280
    Thank Post
    16
    Thanked 74 Times in 64 Posts
    Rep Power
    22
    What version of exchange is the old server?

  3. #3
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,493
    Thank Post
    519
    Thanked 290 Times in 266 Posts
    Rep Power
    82
    same 2010 sp1......

  4. #4

    Join Date
    Mar 2011
    Location
    Bournemouth
    Posts
    280
    Thank Post
    16
    Thanked 74 Times in 64 Posts
    Rep Power
    22
    Well... if you are happy working with scripts and dont mind some work to get it working, here are simplified powershell scripts I used to migrate our mailboxes from our old ex 2007 domain to the new one with 2010. It requires that the users are migrated 1st and that they are exchange enabled.

    Please review this website for prerequisites for import/export to pst files. Fair warning, it requires outlook 2010 to be installed on the mail server.

    http://www.msexchange.org/articles_t...rver-2010.html

    Export Script:
    Code:
    $databaseName = "Users"
    $pstPath = "C:\"
    
    $mailboxes = Get-Mailbox -ResultSize Unlimited -Database $databaseName
    
    if ($mailboxes)
    {
    	foreach ($mailbox in $mailboxes)
    	{
    		if ($mailbox)
    		{
    			Write-Host "Processing mailbox '$mailbox'..."
    
    			$pstFile = Join-Path -Path "$pstPath" -ChildPath "$($mailbox.alias).pst"
    			
    			if (Test-Path $pstFile)
    			{
    				Write-Host "    PST File '$pstFile' already exists. Skipping." -ForegroundColor Red
    			}
    			else
    			{
    				Write-Host "   Exporting mail to '$pstFile'..."
    
    				Export-Mailbox -Identity $mailbox.DistinguishedName -PSTFolderPath $pstFile -BadItemLimit 10000 -Confirm:$false
    			}
    		}
    	}
    }
    Code:
    $databaseName = "Users"
    $pstPath = "C:\"
    
    $mailboxes = Get-Mailbox -ResultSize Unlimited -Database $databaseName
    
    if ($mailboxes)
    {
    	foreach ($mailbox in $mailboxes)
    	{
    		if ($mailbox)
    		{
    			Write-Host "Processing mailbox '$mailbox'..."
    
    			$pstFile = Join-Path -Path "$pstPath" -ChildPath "$($mailbox.alias).pst"
    			
    			if (Test-Path $pstFile)
    			{
    				Write-Host "   Importing mail from '$pstFile'..."
    
    				Import-Mailbox -Identity $mailbox.DistinguishedName -PSTFolderPath $pstFile -ExcludeFolders "\Deleted Items" -BadItemLimit 10000 -Confirm:$false
    			}
    			else
    			{
    				Write-Host "    PST File '$pstFile' does not exist. Skipping." -ForegroundColor Red
    			}
    		}
    	}
    }
    Edit: Fair warning no2: Export-Mailbox exports deleted items as well, very annoying and no way to prevent it through options. In the end what I did was create a new database in exchange called Migration and then expanded the export script so that it first moved the user's mailbox to the new database and then exported it, this got rid of any deleted items.
    Last edited by ChrisMiles; 7th July 2011 at 01:42 PM.

  5. Thanks to ChrisMiles from:

    cpjitservices (7th July 2011)

  6. #5
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,493
    Thank Post
    519
    Thanked 290 Times in 266 Posts
    Rep Power
    82
    hmmm that script doesnt work with moving the users over to another sever on a different domain and different database!!

    i really need to get this done by tonight!!! - I've just tried doing a remote request but it couldnt contact the new server

  7. #6

    Join Date
    Mar 2011
    Location
    Bournemouth
    Posts
    280
    Thank Post
    16
    Thanked 74 Times in 64 Posts
    Rep Power
    22
    Quote Originally Posted by cpjitservices View Post
    hmmm that script doesnt work with moving the users over to another sever on a different domain and different database!!

    i really need to get this done by tonight!!! - I've just tried doing a remote request but it couldnt contact the new server
    Yeah it does, as long as the user's alias's are the same.

    Run the export script on the old server, move the pst files somewhere the new server can access them, make sure you set the path variable in the import script and then run the import script on the new server.
    Last edited by ChrisMiles; 7th July 2011 at 02:25 PM.

  8. Thanks to ChrisMiles from:

    cpjitservices (7th July 2011)

  9. #7
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,493
    Thank Post
    519
    Thanked 290 Times in 266 Posts
    Rep Power
    82
    OK I'm new to this and have no idea how these scripts work or how to run them, in fact I dont even know where to start with the scripts!

  10. #8

    Join Date
    Mar 2011
    Location
    Bournemouth
    Posts
    280
    Thank Post
    16
    Thanked 74 Times in 64 Posts
    Rep Power
    22
    Quote Originally Posted by cpjitservices View Post
    OK I'm new to this and have no idea how these scripts work or how to run them, in fact I dont even know where to start with the scripts!
    Well if thats the case, I dont recommend you use them, especially if you are in a hurry. I wouldnt want to be responsible for any problems. You can also export and import mailboxes uses the exchange manager, thats probably a better bet.

  11. Thanks to ChrisMiles from:

    cpjitservices (7th July 2011)

  12. #9
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,493
    Thank Post
    519
    Thanked 290 Times in 266 Posts
    Rep Power
    82
    ok I shall go and hunt for exchange manager as I have only got the management console!, any ideas where to find exchange manager ?

  13. #10

    Join Date
    Mar 2011
    Location
    Bournemouth
    Posts
    280
    Thank Post
    16
    Thanked 74 Times in 64 Posts
    Rep Power
    22
    I meant the exchange management console.

  14. #11
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,493
    Thank Post
    519
    Thanked 290 Times in 266 Posts
    Rep Power
    82
    ok I have tried remote move but it says it cant connect me, local request wont work because I dont want to move them to a different database on the same server - this is clearly a head banger!! What a Monster!

    I'm getting all sorts of errors to do with Kerberos and SPN when I try to connect the New Exchange forest into the old servers management console!

  15. #12

    john's Avatar
    Join Date
    Sep 2005
    Location
    London
    Posts
    10,362
    Thank Post
    1,499
    Thanked 1,053 Times in 922 Posts
    Rep Power
    303
    I had a PITA moving boxes from our old LAN to the new one, I did it via powershell and another EX box on the old Domain! Basically you need to export them to PSTs, move the PSTs to a folder on the new server and them re-import them and the PSTs need to be named as the aliases of the mail-enabled users on the new domain. It works great but took hours to do

  16. Thanks to john from:

    cpjitservices (7th July 2011)

  17. #13
    cpjitservices's Avatar
    Join Date
    Jul 2010
    Location
    Hessle
    Posts
    2,493
    Thank Post
    519
    Thanked 290 Times in 266 Posts
    Rep Power
    82
    I'll give it a go - thanks!!

  18. #14
    bart21's Avatar
    Join Date
    Aug 2009
    Location
    peterborough
    Posts
    405
    Thank Post
    79
    Thanked 54 Times in 52 Posts
    Rep Power
    20
    The trial version of backup assist will export exchange mailboxes as .pst's as part of its standard backup.

    Then just import them onto your new server.

    nick

  19. Thanks to bart21 from:

    cpjitservices (8th July 2011)

SHARE:
+ Post New Thread

Similar Threads

  1. Easiest way to do this?
    By mrbios in forum Scripts
    Replies: 5
    Last Post: 27th July 2010, 10:46 AM
  2. EXCEL - Recording survey details in excel - Easiest way
    By reecec in forum Office Software
    Replies: 2
    Last Post: 28th April 2010, 08:16 PM
  3. whats this?
    By mcloum in forum Windows Server 2008
    Replies: 10
    Last Post: 13th September 2009, 09:59 PM
  4. Whats This
    By teejay in forum General Chat
    Replies: 28
    Last Post: 15th April 2009, 01:10 PM
  5. [News] Whats in a name...
    By Gatt in forum Jokes/Interweb Things
    Replies: 5
    Last Post: 27th July 2008, 01:31 AM

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
  •