Set NewMessageSignature with Powershell without using Word

anayakoraPK 1 Reputation point
2021-06-23T18:25:45.537+00:00

So far, the only way I've found to change the default New Message Signature in Outlook is by instantiating Word:

$MSWord = New-Object -COMObject word.application 
$MSWord.EmailOptions.EmailSignature.NewMessageSignature="New Default"
$MSWord.Quit()

I don't fully understand what this snippet is doing, but it works.

The script is run at user Logon with a GPO, and results in Outlook's login prompt appearing for a few seconds while the value is being updated.

Is there a way to update this value without the user seeing a login prompt?

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,390 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 30,381 Reputation points Microsoft Vendor
    2021-06-24T06:02:53.76+00:00

    Hi,

    You can try the PSWriteWord module if you don't want to use the Word COM object.
    https://www.powershellgallery.com/packages/PSWriteWord

    This could be helpful.
    https://office365itpros.com/2020/02/19/updating-outlook-signature-powershell/
    Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments