Donny Maasland
Donny Maasland
The user you're using doesn't have the proper permissions
Try using the command ```powershell New-ManagementRoleAssignment -Role "Mailbox Import Export" -User "your user" ``` manually and share the output
I'm sorry, that's not a language I understand :)
Probably
Are you sure the server you're testing against is vulnerable?
This is a totally different error. Please add this to line 116 and share the output after running the script again: ```python print(r.status_code, r.headers, r.content) ```
Your exchange version is 15.1.2308.14. Also known as Exchange 2016 CU21: https://exchangeserverversions.blogspot.com/2016/01/exchange-server-2016.html This version is not vulnerable: https://support.microsoft.com/en-us/topic/description-of-the-security-update-for-microsoft-exchange-server-2016-july-13-2021-kb5004779-81e40da3-60db-4c09-bf11-b8c1e0c1b77d
That error means that either: 1. The server isn't vulnerable 2. The email address is incorrect Nothing I can do about it.
Use [Remove-MailboxExportRequest](https://docs.microsoft.com/en-us/powershell/module/exchange/remove-mailboxexportrequest?view=exchange-ps) to remove old exports for that mailbox
What happens when you visit the shell URL manually?