Forum Discussion
Custom colors for Sensitivity Label's content marking in Purview
- Jan 28, 2025
You can choose custom color for your watermarking from PowerShell. First you create a sensitivity label with the available color then you need to:
1) connect to exchange online module on PowerShell
2) connect to IPPSsession module
3) Last, run the following commands (ensure whether it is a header, footer, or watermarking):Set-Label -Identity LABELNAME -ApplyContentMarkingHeaderFontColor "#EAA221"
Replace #EAA221 with the desired color hexadecimal
I hope this helps!
Hi Kavish,
It's possible to change the color of the Header from PowerShell. Please follow those steps:
1) Connect to exchange online module on PowerShell
2) connect to the IPPSsession module
3) Apply one of these / all PowerShell commands:
Set-Label -Identity LABELNAME -ApplyContentMarkingHeaderFontColor "#EAA221"
OR
Set-Label -Identity LABELNAME -ApplyContentMarkingFooterFontColor "#EAA221"
Please replace #EAA221 with the desired hexadecimal color.
For more information, please review the following website: https://learn.microsoft.com/en-us/powershell/module/exchange/set-label?view=exchange-ps
I hope this helps!