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