PowerShell and Outlook

Welcome Forums General PowerShell Q&A PowerShell and Outlook

This topic contains 1 reply, has 2 voices, and was last updated by

 
Participant
1 year ago.

  • Author
    Posts
  • #82885

    Participant
    Points: 53
    Rank: Member

    I have a PowerShell script that creates .htm files for Outlook signatures. Then, it finds the correct .htm for the correct logged in user and applies it to their local profile. It also edits the regedit to add NewSignature and ReplySignature. This is all working fine.

    My problem is that, when I open Outlook, it wont' show the new or updated signatures. I still have to click on file, options, mail, signatures, and just close the window, or click cancel for the signatures to update. Is there a delay between the time I update the regedit and for Outlook to catchup to the changes?

    Is there some exchange command I need to run so it update?

    Thanks,

    Tony

  • #83050

    Participant
    Points: 4
    Rank: Member

    I'm guessing that Outlook doesn't query the registry key unless you go into signature options. It might be worth running Process Monitor while opening Outlook and then going into the signature options to confirm.

    You may be able to interact with the Outlook COM object to force a read if that's the case.

The topic ‘PowerShell and Outlook’ is closed to new replies.