Change Outlook signature files for company users RRS feed

  • Question

  • Hello,

    I'm looking for a way to change the Outlook signature files for 20 users in a company, so that they are all using the same signature.

    I'd like to be able to use a process similar to this...

    1. Upload the new signature files to a shared folder.

    2. Give the Outlook users an executable file that will...

    >> delete the existing outlook signature files in the signatures folder "/AppData/Roaming/Microsoft/Signatures".

    >>copy the new signature file from the shared folder and paste it into the signatures folder.

    How can I automate this process as they will all have different user names?

    Thanks in Advance For Your Help.


    • Moved by Bill_Stewart Monday, July 30, 2018 9:27 PM This is not "scripts on demand"
    Thursday, June 14, 2018 4:34 PM

All replies

  • Look in the Gallery for scripts.

    Here is the simple way to do it:

    # create word document from a template
    $wd = New-Object -ComObject Word.Application
    $sigTmplt = "$PWD\signature2.dotx"
    $doc = $wd.Documents.Add($sigTmplt)
    $wd.Visible = $true
    # set all bookmark texts by name
    $doc.Bookmarks['Email'].Range.Text = 'mymail.test.com'
    $doc.Bookmarks['Fullname'].Range.Text = 'Mary Contrary'
    # generate signatures in Outlook
    $sigName = 'MySig3'
    $wd.EmailOptions.EmailSignature.NewMessageSignature = $sigName
    $wd.EmailOptions.EmailSignature.ReplyMessageSignature = $sigName
    # abort document and close/quit
    $doc.Saved = $true


    Thursday, June 14, 2018 6:49 PM