# Email multiple users via powershell - Exchange

**URL:** <https://forums.powershell.org/t/email-multiple-users-via-powershell-exchange/8325>\
**Category:** PowerShell Help\
**Created:** [March 30, 2017, 1:01pm UTC](https://forums.powershell.org/t/email-multiple-users-via-powershell-exchange/8325 "2017-03-30T13:01:48Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex019/uploads/powershell/original/1X/385e4f9fe133561ad30a814262fe0e0ae6bc3ef0.png) [@system](https://forums.powershell.org/u/system)\
**Post date:** [March 30, 2017, 1:01pm UTC](https://forums.powershell.org/t/email-multiple-users-via-powershell-exchange/8325/1 "2017-03-30T13:01:48Z")

</div>

I have what I consider a perplexing question for the PowerShell rookie that I am.

This is what I am trying to do - We are running a script that identify’s every shared mailbox on Exchange that has a StorageLimitStatus of “IssueWarning” or ProhibitSend" - The script then is designed to compile the offenders into a .CSV file and use the .CSV file contents to send a customized email to Shared mailbox with a nag message. That script works very well. (FYI: The CSV contains “Display Name”,“PrimarySmtpAddress”,“TotalItemSize”,“StorageLimitStatus”,“ProhibitSendQuotas”.)

However now we want to send the nag message to everyone who has Full Access to the mailbox (excluding inherited permissions and system accounts). Basically I am trying to determine the fullaccess users and send the custom nag message to those users.

I can easily identify the users of individual mailboxes with full access, however adding the results of the permission pull is proving problematic. The results returned using the Get-Mailbox permissions is different than get-mailbox (obviously). SHared mailboxes will have zero users with full access, one user with full access (typical a group for management purposes), or multiple users. The main problem, If there are more than one users with full access, I am unable to export the results in a manner that will allow me to send the custom email message. Since this is designed to be scripted and automatic, not a good thing.

Any assistance or pointers in the right direction would be very helpful and appreciated.

---

<div class="post-metadata">

**Author:** ![cyril-muffat](https://avatars.discourse-cdn.com/v4/letter/c/8e7dd6/32.png) [@cyril-muffat](https://forums.powershell.org/u/cyril-muffat)\
**Post date:** [March 30, 2017, 3:51pm UTC](https://forums.powershell.org/t/email-multiple-users-via-powershell-exchange/8325/2 "2017-03-30T15:51:25Z")

</div>

sory my original post was not what u were looking for

---

<div class="post-metadata">

**Author:** ![dotnVo](https://avatars.discourse-cdn.com/v4/letter/d/4af34b/32.png) [@dotnVo](https://forums.powershell.org/u/dotnVo)\
**Post date:** [May 16, 2024, 8:39pm UTC](https://forums.powershell.org/t/email-multiple-users-via-powershell-exchange/8325/3 "2024-05-16T20:39:27Z")

</div>


