Updated: Script to set Outlook 2010/2013 signature using information populated from Active Directory

posted in: Blog, Powershell | 4

I updated the Signature Script that I posted last year with some bug fixes and improvements.

You can download the *.zip file which includes the script and an example *.docx template from the TechNet Gallery.

If you want to have a look at the script, here it is:

4 Responses

  1. MadwolfPT

    Hi,

    Your script is very good and saved me a lot of work.

    But since I needed to be able to set the new signature as default (not forcing), I changed a bit the script, adding this lines so it makes the signature as the default one 😉

    As some people may need I put the lines I added here:

    $EmailSignature.NewMessageSignature = “SignatureName” #insert the signature name
    $EmailSignature.ReplyMessageSignature = “SignatureName” #insert the signature name
    $MSWord.Quit

    You must replace the SignatureName with the name you choosen on the beginning of the script 😉
    This lines were added just after the ones you have to make the signature available.

  2. Thanks for the great script! It works very well but I’m having one little problem with the RTF to Text conversion. In my RTF template, I have no line breaks after the last line of text. In the generated text file, it inserts 12 line breaks at the bottom of the signature. Any ideas why or how to prevent this from happening?

    I’ve also posted in the MS community forums here – http://answers.microsoft.com/en-us/office/forum/office_2013_release-customize/rtf-to-text-conversion-is-adding-line-breaks/b56927e9-75f1-46c0-94a9-12685b5ae1db?tm=1437142681250.

    Thanks again and cheers!
    Kyle Dixon

  3. Olaf Dettmar

    Hi Daniel,
    thank you for your code. Has been an inspiration for some more.
    Found word.exe lingering around after the skript finished and added this line after $MSWord.Quit():
    [System.Runtime.Interopservices.Marshal]::ReleaseComObject($MSWord).
    Regarding the setting e-mail signature (as available) I tripped over outlook demanding logon credentials – credential manager not working for outlook. Do you have a clue to this problem?
    best regards
    Olaf

  4. Douglas Henrique

    Hey Daniel,

    How are you? This is a great work. Thank you for this.

    I have a question. Could you help me? I’m trying put a href with mailto in the signatures, but I can not know to do this. Below I wrote an example:

    My e-mail is douglas@contoso.com.br. I want to put a mailto before my address. Do you think this is possible?

    Thank you again and good job!

Leave a Reply