ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Way to create pst on Exchange 2013

    Scheduled Pinned Locked Moved Solved IT Discussion
    29 Posts 7 Posters 2.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • dbeatoD
      dbeato @JaredBusch
      last edited by

      @jaredbusch said in Way to create pst on Exchange 2013:

      @dbeato here is the script I currently use. It is used while logged in to the Exhange server with the domain admin account.

      # To execute script, you must open an exchange powershell window, elevated permissions not required.
      
      # First you must be in the scripts directory.
      # cd \scripts
      
      # Then execute the powershell script with 3 parameters.
      # ./CreatePST.ps1 >First Name< >Last Name< >email alias< 
      # ./CreatePST.ps1 Bundy Administrator bnaadmin
      
      # The export path is not a variable as we need to know that it is writable by the system.
      
      param (
          [string]$FirstName = $(throw "-FirstName is required."),
          [string]$LastName = $(throw "-LastName is required."),
      	[string]$alias = $(throw "-alias is required.")
      )
      
      New-MailboxExportRequest -Mailbox "$alias" -FilePath "\\exch01\c$\PSTExports\$FirstName.$LastName.pst"
      Write-Host ""
      Write-Host "To check status, run: Get-MailboxExportRequest | Get-MailboxExportRequestStatistics"
      

      This is good. What you need to do in any Exchange server is the following for the account requesting the export:

      New-ManagementRoleAssignment -Role "Mailbox Import Export" -User "<user name or alias>" 
      
      1 Reply Last reply Reply Quote 0
      • JaredBuschJ
        JaredBusch
        last edited by

        @dbeato said in Way to create pst on Exchange 2013:

        This is good. What you need to do in any Exchange server is the following for the account requesting the export:

        Never done that before on Exchange 2007 or Exchange 2010.

        1 Reply Last reply Reply Quote 0
        • JaredBuschJ
          JaredBusch
          last edited by JaredBusch

          And damnit..
          New-MailboxExportRequest : The term 'New-MailboxExportRequest' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

          dbeatoD 1 Reply Last reply Reply Quote 0
          • dbeatoD
            dbeato @JaredBusch
            last edited by

            @jaredbusch said in Way to create pst on Exchange 2013:

            And damnit..
            New-MailboxExportRequest : The term 'New-MailboxExportRequest' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

            Once you add the role to the user and open the console again then it will be fine.

            JaredBuschJ 1 Reply Last reply Reply Quote 0
            • JaredBuschJ
              JaredBusch @dbeato
              last edited by

              @dbeato said in Way to create pst on Exchange 2013:

              @jaredbusch said in Way to create pst on Exchange 2013:

              And damnit..
              New-MailboxExportRequest : The term 'New-MailboxExportRequest' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

              Once you add the role to the user and open the console again then it will be fine.

              And exit the current powershell windows and reopen.

              So either all the previous Exchange servers I have done this on already had this role by default, or someone added it.

              dbeatoD 1 Reply Last reply Reply Quote 1
              • dbeatoD
                dbeato @JaredBusch
                last edited by

                @jaredbusch said in Way to create pst on Exchange 2013:

                @dbeato said in Way to create pst on Exchange 2013:

                @jaredbusch said in Way to create pst on Exchange 2013:

                And damnit..
                New-MailboxExportRequest : The term 'New-MailboxExportRequest' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.

                Once you add the role to the user and open the console again then it will be fine.

                And exit the current powershell windows and reopen.

                So either all the previous Exchange servers I have done this on already had this role by default, or someone added it.

                Yes, you are correct in the assessment.

                1 Reply Last reply Reply Quote 0
                • brianlittlejohnB
                  brianlittlejohn
                  last edited by

                  Exchange 2010 I needed to assign the Import/Export role to my user before I could export a mailbox.

                  1 Reply Last reply Reply Quote 0
                  • dbeatoD
                    dbeato
                    last edited by

                    Were you able to export the mailboxes?

                    JaredBuschJ 1 Reply Last reply Reply Quote 0
                    • JaredBuschJ
                      JaredBusch @dbeato
                      last edited by

                      @dbeato said in Way to create pst on Exchange 2013:

                      Were you able to export the mailboxes?

                      Yes, once I added that role to the domain admin account, it worked perfectly.

                      1 Reply Last reply Reply Quote 1
                      • JaredBuschJ
                        JaredBusch
                        last edited by

                        As a conclusion to this post, I did not find a better method than my current PowerShell script.

                        1 Reply Last reply Reply Quote 3
                        • BRRABillB
                          BRRABill
                          last edited by

                          Out of curiosity, why are you exporting a mailbox before deletion?

                          Deletion of ex-employee email is something I always struggle with (and have had many discussion here on), so was just wondering...

                          JaredBuschJ 1 Reply Last reply Reply Quote 0
                          • JaredBuschJ
                            JaredBusch @BRRABill
                            last edited by

                            @brrabill said in Way to create pst on Exchange 2013:

                            Out of curiosity, why are you exporting a mailbox before deletion?

                            Deletion of ex-employee email is something I always struggle with (and have had many discussion here on), so was just wondering...

                            Because it makes it no longer an IT issue.

                            Terminated employees mailboxes are exported and dropped onto a location that the client access or delete. No longer my problem.

                            DashrenderD 1 Reply Last reply Reply Quote 2
                            • DashrenderD
                              Dashrender @JaredBusch
                              last edited by

                              @jaredbusch said in Way to create pst on Exchange 2013:

                              @brrabill said in Way to create pst on Exchange 2013:

                              Out of curiosity, why are you exporting a mailbox before deletion?

                              Deletion of ex-employee email is something I always struggle with (and have had many discussion here on), so was just wondering...

                              Because it makes it no longer an IT issue.

                              Terminated employees mailboxes are exported and dropped onto a location that the client access or delete. No longer my problem.

                              Depending on where you drop it, still a part of the backup, so.... 😉

                              JaredBuschJ 1 Reply Last reply Reply Quote 0
                              • JaredBuschJ
                                JaredBusch @Dashrender
                                last edited by

                                @dashrender said in Way to create pst on Exchange 2013:

                                @jaredbusch said in Way to create pst on Exchange 2013:

                                @brrabill said in Way to create pst on Exchange 2013:

                                Out of curiosity, why are you exporting a mailbox before deletion?

                                Deletion of ex-employee email is something I always struggle with (and have had many discussion here on), so was just wondering...

                                Because it makes it no longer an IT issue.

                                Terminated employees mailboxes are exported and dropped onto a location that the client access or delete. No longer my problem.

                                Depending on where you drop it, still a part of the backup, so.... 😉

                                but the mailbox is not an issue.
                                at that point it is just user data.

                                1 Reply Last reply Reply Quote 0
                                • BRRABillB
                                  BRRABill
                                  last edited by

                                  I still think is more of an IT issue.

                                  If you work at a smaller company, and the boss doesn't think to ask you what to do. You go to him and say what?

                                  Should we delete it? Should we keep it.

                                  JaredBuschJ 1 Reply Last reply Reply Quote 0
                                  • JaredBuschJ
                                    JaredBusch @BRRABill
                                    last edited by

                                    @brrabill said in Way to create pst on Exchange 2013:

                                    I still think is more of an IT issue.

                                    If you work at a smaller company, and the boss doesn't think to ask you what to do. You go to him and say what?

                                    Should we delete it? Should we keep it.

                                    Nope. When someone is terminated, I ask how long to keep it active, before archived. I don't accept "a while" as an answer. I force a date to be chosen. I also tell them if they want the email to continue to come in after that date, it can be set as an alias to another user.

                                    But it will stop being an active account.

                                    BRRABillB 1 Reply Last reply Reply Quote 3
                                    • BRRABillB
                                      BRRABill @JaredBusch
                                      last edited by

                                      @jaredbusch said

                                      I also tell them if they want the email to continue to come in after that date, it can be set as an alias to another user.

                                      This creates the same sort of issue where new new sales guy is getting e-mails from the old sales person's ex-boyfriend.

                                      I think the easy answer is just delete the account, but it seems like a lot of places don't do it that way.

                                      JaredBuschJ wirestyle22W 2 Replies Last reply Reply Quote 0
                                      • JaredBuschJ
                                        JaredBusch @BRRABill
                                        last edited by JaredBusch

                                        @brrabill said in Way to create pst on Exchange 2013:

                                        @jaredbusch said

                                        I also tell them if they want the email to continue to come in after that date, it can be set as an alias to another user.

                                        This creates the same sort of issue where new new sales guy is getting e-mails from the old sales person's ex-boyfriend.

                                        I think the easy answer is just delete the account, but it seems like a lot of places don't do it that way.

                                        FFS

                                        That is not your problem. Stop making it your problem.

                                        1 Reply Last reply Reply Quote 2
                                        • wirestyle22W
                                          wirestyle22 @BRRABill
                                          last edited by

                                          @brrabill said in Way to create pst on Exchange 2013:

                                          @jaredbusch said

                                          I also tell them if they want the email to continue to come in after that date, it can be set as an alias to another user.

                                          This creates the same sort of issue where new new sales guy is getting e-mails from the old sales person's ex-boyfriend.

                                          I think the easy answer is just delete the account, but it seems like a lot of places don't do it that way.

                                          Your age is showing Bill. I wasn't alive for a time where anyone was e-mailing their significant other lol

                                          scottalanmillerS 2 Replies Last reply Reply Quote 0
                                          • scottalanmillerS
                                            scottalanmiller @wirestyle22
                                            last edited by

                                            @wirestyle22 said in Way to create pst on Exchange 2013:

                                            @brrabill said in Way to create pst on Exchange 2013:

                                            @jaredbusch said

                                            I also tell them if they want the email to continue to come in after that date, it can be set as an alias to another user.

                                            This creates the same sort of issue where new new sales guy is getting e-mails from the old sales person's ex-boyfriend.

                                            I think the easy answer is just delete the account, but it seems like a lot of places don't do it that way.

                                            Your age is showing Bill. I wasn't alive for a time where anyone was e-mailing their significant other lol

                                            Still how most of us do it.

                                            1 Reply Last reply Reply Quote 0
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • First post
                                              Last post