Forum Discussion
Powershell command to pull all user signatures?
Hi, is there a Powershell command to pull all user signatures from 365 mailboxes?
I see there is a command to set it for a user using "Set-OSCEXOEmailSignature" but I cannot see it works for "get".
Thanks
8 Replies
Well, keep in mind that users might not have server-side signatures configured, and simply use the Outlook ones. But you can get them via PowerShell:
Get-Mailbox -RecipientTypeDetails UserMailbox | Get-MailboxMessageConfiguration | select Identity,Signature*
The question surely is after you return all the signatures stored in user mailboxes, what do you do with it?
- Michelangelo BotturaCopper Contributor
I know this is old, but however for the sake of completeness I am going to add my experience: spammers often add a spam link in the signature of accounts they managed to steal credentials. Extracting all signatures may be a way to approach the issue.
Looking at the script that I found here: https://gallery.technet.microsoft.com/office/Set-Email-Signatures-in-792587f5/view/Discussions
It looks like it might be possible to develop a similar script to get the signatures. But I don't think that it exists yet.
- You have at least two other options in Office 365:
(1) By means of Mail Flow rule.
(2) By means of a third party tool