Announcement

Collapse
No announcement yet.

Cannot export mailbox

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Cannot export mailbox

    Hi,

    I have followed the instructions to export a mailbox, although must be missing something. I am using the following syntax and receive the following error:

    Welcome to the Exchange Management Shell!

    Full list of cmdlets: get-command
    Only Exchange cmdlets: get-excommand
    Cmdlets for a specific role: get-help -role *UM* or *Mailbox*
    Get general help: help
    Get help for a cmdlet: help <cmdlet-name> or <cmdlet-name> -?
    Show quick reference guide: quickref
    Exchange team blog: get-exblog
    Show full output for a cmd: <cmd> | format-list

    Tip of the day #62:

    Do you want to know what permissions an Active Directory user account has on a s
    pecific mailbox? Use:

    Get-Mailbox <Mailbox to Check> | Get-MailboxPermission -User <Active Directory
    User>

    [PS] C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Exchange Ser
    ver 2007>export-mailbox -Identity simon -PSTFolderPath C:\pst
    Export-Mailbox : A parameter cannot be found that matches parameter name 'PSTFo
    lderPath'.
    At line:1 char:55
    + export-mailbox -Identity simon -PSTFolderPath <<<< C:\pst
    + CategoryInfo : InvalidArgument: ( [Export-Mailbox], Parameter
    BindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Exchange.Manage
    ment.RecipientTasks.ExportMailbox

    [PS] C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Microsoft Exchange Ser
    ver 2007>

    Thanks for looking!

  • #2
    Re: Cannot export mailbox

    Does the directory c:\pst already exist?

    Most export commands from the powershell require that the directories are already there.

    Comment


    • #3
      Re: Cannot export mailbox

      hi,

      yes, i created it before running the command.

      Thanks

      Comment


      • #4
        Re: Cannot export mailbox

        The command you want is
        export-mailbox -Identity simon -PSTFolderPath C:\pst\mypstfile.pst
        Daniel Frei
        -Windows Operations Server Administrator
        -Exchange Guru
        -Cisco Fanatic
        -SharePoint Hippie
        -Volkswagen Enthusiast

        www.lazynetworkadmin.com

        Comment


        • #5
          Re: Cannot export mailbox

          Hi,

          thanks for your reply and sorry for the delay in posting back.

          I receive the following error using the syntax suggested:

          [PS] C:\>export-mailbox -Identity simon -PSTFolderPath C:\pst\simon.pst
          Export-Mailbox : A parameter cannot be found that matches parameter name 'PSTFo
          lderPath'.
          At line:1 char:55
          + export-mailbox -Identity simon -PSTFolderPath <<<< C:\pst\simon.pst
          + CategoryInfo : InvalidArgument: ( [Export-Mailbox], Parameter
          BindingException
          + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.Exchange.Manage
          ment.RecipientTasks.ExportMailbox

          [PS] C:\>

          Comment


          • #6
            Re: Cannot export mailbox

            Are you running this from a 32 bit workstation, or from the server?

            The command looks correct, so I have to suspect that the machine isn't setup correctly.
            http://technet.microsoft.com/en-us/l...EXCHG.80).aspx

            Simon.
            --
            Simon Butler
            Exchange MVP

            Blog: http://blog.sembee.co.uk/
            More Exchange Content: http://exchange.sembee.info/
            Exchange Resources List: http://exbpa.com/
            In the UK? Hire me: http://www.sembee.co.uk/

            Sembee is a registered trademark, used here with permission.

            Comment


            • #7
              Re: Cannot export mailbox

              Hi,

              Sorry for the slow reply - I have been off-site.

              Originally posted by Sembee View Post
              Are you running this from a 32 bit workstation, or from the server?

              The command looks correct, so I have to suspect that the machine isn't setup correctly.
              http://technet.microsoft.com/en-us/library/bb266964(EXCHG.80).aspx

              Simon.
              From a 32 bit workstation with Outlook 2007 installed.

              Thanks for the link to the MS article. I have read through it and believe everything is as per should be although will double check and report back.

              Thanks for the help!

              Comment


              • #8
                Re: Cannot export mailbox

                What ist the version of your exchange management console?
                You need Exchange Management console at least version Service Pack 1
                (Version: 08.01.0240.006)

                Management Console BEFORE SP1 have this parameter -pstfolderpath not on board

                http://www.microsoft.com/downloads/d...displaylang=en

                So install Management Tools SP1 and you can go.

                Comment


                • #9
                  Re: Cannot export mailbox

                  hi,

                  thanks and sorry for the slow reply. For some reason the e-mail notification for subscribed threads is no longer working - i'll contact a mod about it.

                  I should be onsite later on this week and will check, although believe SP1 was installed after the initial management console was installed (i appreciate it is two, seperate, huge downloads from MS!) although will double check.

                  Out of curiousity, if the user were to export the mailbox to .pst from Outlook (2007), would this achieve the same results -all folders, calendar etc? If so, in this case it's only one mailbox so would be OK.

                  Comment


                  • #10
                    Re: Cannot export mailbox

                    Standard export-mailbox in a pst file is an export with all folders!
                    You can exclude folders!

                    For example
                    Get-User john | Export-Mailbox -ExcludeFolders "\Junk E-Mail","\Contacts" -pstfolderpath c:\bla.pst
                    (source http://technet.microsoft.com/en-us/l...CHG.80%29.aspx)

                    That's it.

                    I had same problem a view weeks ago too.
                    On exchange server the parameter -pstfolderpath works but not on my machine.
                    Then I found that my management console had another version as on our exchange.
                    Management Tools SP1 installed and that's it


                    edit: forgot -pstfolderpath
                    Last edited by El Larso; 9th March 2010, 17:05.

                    Comment


                    • #11
                      Re: Cannot export mailbox

                      Originally posted by El Larso View Post
                      Standard export-mailbox in a pst file is an export with all folders!
                      You can exclude folders!

                      For example
                      Get-User john | Export-Mailbox -ExcludeFolders "\Junk E-Mail","\Contacts"
                      (source http://technet.microsoft.com/en-us/l...CHG.80%29.aspx)

                      That's it.

                      I had same problem a view weeks ago too.
                      On exchange server the parameter -pstfolderpath works but not on my machine.
                      Then I found that my management console had another version as on our exchange.
                      Management Tools SP1 installed and that's it
                      hi,

                      thanks for your reply and link.

                      I will try and let you know. Unable to check from server as it is 64 bit.

                      So, just to confirm, there is no difference in doing it from Outlook (in this one off case)? File > Export ) .pst

                      Thanks.

                      Comment


                      • #12
                        Re: Cannot export mailbox

                        Hi,

                        Just wanted to say thanks for the pointers on this. I have just arrived on-site and after re-installing SP1 for management console on the Windows 7 machine, the mailbox successfully exported to .pst.

                        Cheers!

                        Comment


                        • #13
                          Re: Cannot export mailbox

                          Yeah fine... Sounds good

                          Comment

                          Working...
                          X