DEV Community

Discussion on: How to deploy email signatures through Group Policies

Collapse
 
ethermcman profile image
EtherMcMan • Edited

On Windows 10 and more presumably on PoSh 5, you have to escape the brackets.
Here you are for example : $namePlaceHolder = "\ [DISPLAY_NAME\ ]"
Tested in ISE and on a GPO logon script and it worked like a charm.

PS: due to comments generated in markdown, you have to delete the extras white spaces after the escape characters.