Outlook Web App > For Administrators > Security and Compliance > Supervision Policies > Configure the Bad Words Supervision Policy >
Configure the Bad Words Supervision Policy in Windows PowerShell

Topic Last Modified: 2009-09-28

We recommend that you use the Web management interface to configure the bad words supervision policy, but you can also use Windows PowerShell.

Before you begin

To learn how to install and configure Windows PowerShell and connect to Outlook Live, see Use Windows PowerShell.

Turn on the policy

Run the following command after you have connected to the Outlook Live server-side session:

Set-SupervisionPolicy -BadWordsPolicyEnabled $true

Change the list of bad words

You can't remove individual entries or change entries on the list of bad words in Windows PowerShell. You have to replace the entire list by running the following command after you have connected to the Outlook Live server-side session:

Set-SupervisionPolicy -BadWordsList <word1,word2,...>

Separate words or phrases with commas. Enclose values that contain spaces or special characters in double quotation marks, as follows, for example:

Set-SupervisionPolicy -BadWordsList bad,naughty,awful,"second rate","stinkin'",sour,terrible

Turn off the policy

Run the following command:

Set-SupervisionPolicy -BadWordsPolicyEnabled $false

View the current settings for the policy

Run the following command:

Get-SupervisionPolicy -DisplayDetails
Page view tracker