Set NewMessageSignature with Powershell without using Word

anayakoraPK 1 Reputation point

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"

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,348 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 29,476 Reputation points Microsoft Vendor


    You can try the PSWriteWord module if you don't want to use the Word COM object.

    This could be helpful.
    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