Import-BannedWords
SYNOPSIS
Imports a file containing new line-separated words into the banned word store
SYNTAX
DESCRIPTION
The Import-BannedWords cmdlet will import a file containing new line-separated words into the banned word store. Each line read from the file will have the normalization rules applied to it before being committed to the store.
EXAMPLES
Example 1
This example shows how to import a file of words
Example 2
To increase speed when importing a large file when additional memory is available, you can specify a larger batch size
PARAMETERS
-BatchSize
Specifies how many lines to read from the file before committing them to disk.
In order to minimize the impact of memory usage when importing words, the words are read from the file and committed to the store in batches of this size. The larger the batch size, the faster the import, but the more memory is used. If left unspecified, the default value of 5,000,000 is used which provides an adequate balance of memory usage and speed.
-Filename
The name of the file containing the words to add to the store.
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
INPUTS
System.String
OUTPUTS
System.Object
NOTES
RELATED LINKS
Last updated