Share via

Export Send As Permissions

Glenn Maxwell 13,761 Reputation points
2021-03-15T10:25:09.457+00:00

Hi All

i want to export sendas permissions for a shared mailbox. i am getting the error when using the below syntax in exchange online powershell

Get-RecipientPermission -Identity ******@contoso.com | Get-ADPermission | Where-Object {$_.extendedrights -like "*Send*"} | Select-Object Identity,User,@{Name="extendedrights";Expression={$_.extendedrights}}  | Export-Csv C:\temp\output.csv -NoTypeInformation  

Get-ADPermission : The term 'Get-ADPermission' 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.
At line:1 char:71

  • Get-RecipientPermission -Identity sharedmailbox@Company portal .com | Get-ADPerm ...
  • ~~~~~~~~~~
  • CategoryInfo : ObjectNotFound: (Get-ADPermission:String) [], CommandNotFoundException
  • FullyQualifiedErrorId : CommandNotFoundException
Exchange Online
Exchange Online

A cloud-based service included in Microsoft 365, delivering scalable messaging and collaboration features with simplified management and automatic updates.

Exchange | Exchange Server | Management
Exchange | Exchange Server | Management

The administration and maintenance of Microsoft Exchange Server to ensure secure, reliable, and efficient email and collaboration services across an organization.

0 comments No comments

Answer accepted by question author

Vasil Michev 127K Reputation points MVP Volunteer Moderator
2021-03-15T11:01:58.45+00:00

There is no such cmdlet in Exchange Online. Use this instead:

Get-RecipientPermission ******@domain.com | ? {$_.Trustee -ne "NT AUTHORITY\SELF" -and $_.Trustee -ne "NULL SID"} | select Identity, Trustee, AccessRights | Export-Csv -nti blabla.csv

Was this answer helpful?

0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.