ManageProfanityFilter.ps1.txt 

Downloading this file type (.txt) can potentially harm your computer.

Comments (1)

Please wait...
Sorry, the comment you entered is too long. Please shorten it.
You didn't enter anything. Please try again.
Sorry, we can't add your comment right now. Please try again later.
To add a comment, you need permission from your parent. Ask for permission
Your parent has turned off comments.
Sorry, we can't delete your comment right now. Please try again later.
You've exceeded the maximum number of comments that can be left in one day. Please try again in 24 hours.
Your account has had the ability to leave comments disabled because our systems indicate that you may be spamming other users. If you believe that your account has been disabled in error please contact Windows Live support.
Complete the security check below to finish leaving your comment.
The characters you type in the security check must match the characters in the picture or audio.
Jonny has turned off comments on this page.
Jonnywrote:
# Copyright (c) 2008 Microsoft Corporation. All rights reserved.
#
# THIS CODE IS MADE AVAILABLE AS IS, WITHOUT WARRANTY OF ANY KIND. THE ENTIRE RISK
# OF THE USE OR THE RESULTS FROM THE USE OF THIS CODE REMAINS WITH THE USER.

# NAME:
# ManageProfanityFilter.ps1

# SYNOPSIS:
# Creates a 'Bad Word Filter' by creating a transport rule
# that rejects mail containing profanity.

# SYNTAX:
# ManageProfanityFilter.ps1
# [-Rulename <String>]
# [-WordListFile <Strings>]
# [-RejectionReason <String>]
# [-ExceptForMembersOf <RecipientIdParameter>]
# [-RemoteURL <String>]
# [-LiveCredential <PSCredential>]

# PARAMETERS:
# -Rulename (required)
# Name of the new TransportRule to be created by the script.

# -WordListFile (required)
# File Path for List of bad words to check.

# -RejectionReason (Optional)
# Message that end users get when they try to send email to each other

# -ExceptForMembersOf (Optional)
# The groups which have exception to skip the check.

# -RemoteURL (required)
# URL for the connection to the Remote Powershell environment.

# -LiveCredential (required)
# Credentials fot the basic auth logon to the Remote Powershell environment.

# -------------------------- EXAMPLE --------------------------

# Populate credentials to variable:
# $cred = Get-Credential
# -or-
# $Username = "admin@mydomain.com"
# $Password = ConvertTo-SecureString 'MyPassword' -AsPlainText -Force
# $cred = New-Object System.Management.Automation.PSCredential $Username, $Password

# .\ManageProfanityFilter.ps1 "Harassment Policy a-h" -WordListFile "English Profanity List a-h.txt" -RejectionReason "This message cannot be delivered because it contains inappropriate content as defined in the Harassment Policy." -ExceptForMembersOf Admins -RemoteURL https://ps.exchangelabs.com/powershell/ -LiveCredential $cred
July 30
8 of 11

Information

Added by:
Shared with:
Everyone (public)
Type:
Text Document
Size:
7.1 KB
Date added:
7/30/2008 11:21 PM GMT
Date modified:
7/30/2008 11:24 PM GMT
Web address:
Embed: