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

    Exchange Shell command not working

    IT Discussion
    exchange 2016 server 2012 psts
    8
    18
    1.9k
    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.
    • W
      WLS-ITGuy
      last edited by

      I am trying to export out PSTs for the graduating seniors so they can import into their personal gmail accounts. However, when I run the commands I get "not a cmdlet error.

      https://imgur.com/a/92kSC (did it this way because I can't seem to embed the images into the thread 😞 )

      What am I doing wrong?

      K 1 Reply Last reply Reply Quote 0
      • K
        Kelly @WLS-ITGuy
        last edited by

        @wls-itguy said in Exchange Shell command not working:

        I am trying to export out PSTs for the graduating seniors so they can import into their personal gmail accounts. However, when I run the commands I get "not a cmdlet error.

        https://imgur.com/a/92kSC (did it this way because I can't seem to embed the images into the thread 😞 )

        What am I doing wrong?

        Looks like you need to load the Exchange/Office365 module.

        W 1 Reply Last reply Reply Quote 1
        • W
          WLS-ITGuy @Kelly
          last edited by

          @kelly I know crazier things have been needed, but why would I need to install a module on an Exchange 2016 machine when I am running the cmd in Exchange Powershell?

          T K 2 Replies Last reply Reply Quote 0
          • T
            travisdh1 @WLS-ITGuy
            last edited by travisdh1

            @wls-itguy said in Exchange Shell command not working:

            @kelly I know crazier things have been needed, but why would I need to install a module on an Exchange 2016 machine when I am running the cmd in Exchange Powershell?

            PowerShell still needs the Exchange2016 module loaded. I know it doesn't make sense being that you're already in "Exchange Powershell".

            W 1 Reply Last reply Reply Quote 1
            • K
              Kelly @WLS-ITGuy
              last edited by

              @wls-itguy said in Exchange Shell command not working:

              @kelly I know crazier things have been needed, but why would I need to install a module on an Exchange 2016 machine when I am running the cmd in Exchange Powershell?

              Powershell does what it can to run lean, and that means letting the user determine which modules to load on start.

              S 1 Reply Last reply Reply Quote 1
              • S
                scottalanmiller @Kelly
                last edited by

                @kelly said in Exchange Shell command not working:

                @wls-itguy said in Exchange Shell command not working:

                @kelly I know crazier things have been needed, but why would I need to install a module on an Exchange 2016 machine when I am running the cmd in Exchange Powershell?

                Powershell does what it can to run lean, and that means letting the user determine which modules to load on start.

                Which is hard to believe given how insanely slow and bloated it is!

                C 1 Reply Last reply Reply Quote 2
                • C
                  CloudKnight @scottalanmiller
                  last edited by

                  @scottalanmiller - it-is-the-insanely-long-commands-that-get-me
                  Even though they do have tab completion.

                  R 1 Reply Last reply Reply Quote 1
                  • W
                    WLS-ITGuy @travisdh1
                    last edited by

                    @travisdh1 said in Exchange Shell command not working:

                    @wls-itguy said in Exchange Shell command not working:

                    @kelly I know crazier things have been needed, but why would I need to install a module on an Exchange 2016 machine when I am running the cmd in Exchange Powershell?

                    PowerShell still needs the Exchange2016 module loaded. I know it doesn't make sense being that you're already in "Exchange Poershell".

                    I seem to slipping on my google-fu as I cannot find the cmdlet to run in "exchange mode"

                    C 1 Reply Last reply Reply Quote 0
                    • C
                      CloudKnight
                      last edited by

                      I must be the only one that don't like the powershell CLI, I'd rather stick to bash any day of the week..

                      W 1 Reply Last reply Reply Quote 0
                      • W
                        WLS-ITGuy @CloudKnight
                        last edited by

                        @stuartjordan I call it Super DOS. And I F'n HATE IT!

                        C 1 Reply Last reply Reply Quote 1
                        • C
                          CloudKnight @WLS-ITGuy
                          last edited by

                          @wls-itguy said in Exchange Shell command not working:

                          @stuartjordan I call it Super DOS. And I F'n HATE IT!

                          haha, I like that....Very True!

                          1 Reply Last reply Reply Quote 0
                          • C
                            CloudKnight @WLS-ITGuy
                            last edited by

                            @wls-itguy this the command I believe:

                            Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;
                            
                            1 Reply Last reply Reply Quote 1
                            • R
                              Reid Cooper @CloudKnight
                              last edited by

                              @stuartjordan said in Exchange Shell command not working:

                              @scottalanmiller - it-is-the-insanely-long-commands-that-get-me
                              Even though they do have tab completion.

                              And the weird format. Why did they have to make it all so weird?

                              1 Reply Last reply Reply Quote 1
                              • R
                                Reid Cooper
                                last edited by

                                Did this become a... wait for it...

                                PowerShell bash session?

                                C T 2 Replies Last reply Reply Quote 3
                                • C
                                  CloudKnight @Reid Cooper
                                  last edited by

                                  @reid-cooper said in Exchange Shell command not working:

                                  Did this become a... wait for it...

                                  PowerShell bash session?

                                  @reid-cooper said in Exchange Shell command not working:

                                  Did this become a... wait for it...

                                  PowerShell bash session?

                                  lol, that has to be the pun of the day 🙂

                                  1 Reply Last reply Reply Quote 1
                                  • T
                                    travisdh1 @Reid Cooper
                                    last edited by

                                    @reid-cooper said in Exchange Shell command not working:

                                    Did this become a... wait for it...

                                    PowerShell bash session?

                                    Puny indeed.

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

                                      You also need to have export/import permissions granted to your account. They are not granted to anyone by default.

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

                                        @brianlittlejohn said in Exchange Shell command not working:

                                        You also need to have export/import permissions granted to your account. They are not granted to anyone by default.

                                        This is what you need.

                                        First assign your user the Mailbox Export Role
                                        New-ManagementRoleAssignment -Role "Mailbox Import Export" -User "<user name or alias>"

                                        Then make sure the Exchange Subsystem has access to that shared folder and then run your export:
                                        MailboxExportRequest -Mailbox username -FilePath "\\server\PST FOlder\username.pst"

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