none
powershell cmdlet for mailbox move intersite and intrasite RRS feed

  • Question

  • Hi,

    I'm building a tool using vb.net. Among other features this tool will have, it aims to have a feature by which I can move any exchange mailbox from one site to another, both inter and intra-site.

    Do I need to keep anything in mind, while attempting these moves.

    Note: I'm looking to call powershell cmdlets from the vb.net application.

    TIA!


    - thestriver

    Thursday, September 13, 2012 6:26 AM

Answers

  • There are no powershell cmdlets for Exchange 2003 because the EMS was introduced in 2007 and then changed to remote powershell in 2010 so you also wont find one method that will work across all versions of Exchange. In 2003 you need to use the CDOEXM com object http://msdn.microsoft.com/en-us/library/exchange/ms878046(v=exchg.65).aspx . In 2007 you need to use local powershell and the Exchange Management Shell in 2010 you will need to use Remote Powershell. The only thing that is the same across versions is the way in which data is stored in Active Directory. 

    Cheers
    Glen

    • Marked as answer by thestriver Friday, September 14, 2012 4:21 AM
    Friday, September 14, 2012 12:18 AM

All replies

  • What version of Exchange are you running ? You always move mailboxes between databases http://technet.microsoft.com/en-us/library/dd351123.aspx (or possible cross-forest organization). The Active Directory Site (Exchange sites went out in Exchange 5.5) that a MailboxDatabase is in will depend on the server its mounted on. So you would need to work that out then you can pull the AD site from the msExchServerSite property on the server. I wouldn't worry about vb.net for the moment get all your commands and logic working in basic powershell scripts first then once you have that working switch to using .NET.

    Cheers
    Glen

     
    Thursday, September 13, 2012 7:33 AM
  • Aim is to cater to all kinds of exchange starting 2003. Thanks!


    - thestriver

    Thursday, September 13, 2012 8:23 AM
  • There are no powershell cmdlets for Exchange 2003 because the EMS was introduced in 2007 and then changed to remote powershell in 2010 so you also wont find one method that will work across all versions of Exchange. In 2003 you need to use the CDOEXM com object http://msdn.microsoft.com/en-us/library/exchange/ms878046(v=exchg.65).aspx . In 2007 you need to use local powershell and the Exchange Management Shell in 2010 you will need to use Remote Powershell. The only thing that is the same across versions is the way in which data is stored in Active Directory. 

    Cheers
    Glen

    • Marked as answer by thestriver Friday, September 14, 2012 4:21 AM
    Friday, September 14, 2012 12:18 AM
  • Thanks, Glen.

    - thestriver

    Friday, September 14, 2012 4:21 AM