Forum Discussion

Drew Wihl's avatar
Drew Wihl
Copper Contributor
Nov 09, 2017

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*
    • TonyRedmond's avatar
      TonyRedmond
      MVP

      The question surely is after you return all the signatures stored in user mailboxes, what do you do with it?

      • Michelangelo Bottura's avatar
        Michelangelo Bottura
        Copper Contributor

        TonyRedmond 

        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.

    • jcgonzalezmartin's avatar
      jcgonzalezmartin
      MVP
      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

Resources