Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Get-mailbox parameters to target security and distribution groups

$
0
0

I'm trying to use a handy command in powershell that will delete existing email signatures in O365.  However, I can't figure out how to use "get-mailbox" command to target a particular distribution or security group in our organization.  I tried using "Get-DistributionGroup" but it doesn't seem to work with the 2nd piped command.

The following command works great for one user:

Get-Mailbox -Identity "USER EMAIL" | %{set-MailboxMessageConfiguration $_.IDENTITY -SignatureText $NULL -SignatureHtml $NULL}

Thoughts?

Thanks,

Shawn


Viewing all articles
Browse latest Browse all 21975

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>