Exchange Shell command not working
-
I must be the only one that don't like the powershell CLI, I'd rather stick to bash any day of the week..
-
@stuartjordan I call it Super DOS. And I F'n HATE IT!
-
@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!
-
@wls-itguy this the command I believe:
Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn;
-
@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?
-
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?
@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
-
@reid-cooper said in Exchange Shell command not working:
Did this become a... wait for it...
PowerShell bash session?
Puny indeed.
-
You also need to have export/import permissions granted to your account. They are not granted to anyone by default.
-
@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"