Hi Im trying to making Add Rules to DLP Policy with PowerShell
# Add Rules to the DLP Policy
$RuleName = "DlpRule"
$ContentContainsSensitiveInformation = @(
New-DlpSensitiveInformationTypeRuleCondition `
-SensitiveInformationType @{Name="Credit Card Number" ; MinCount=1} )
the error message is:
New-DlpSensitiveInformationTypeRuleCondition : The term 'New-DlpSensitiveInformationTypeRuleCondition' is not
recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if
a path was included, verify that the path is correct and try again.
At line:3 char:1
+ New-DlpSensitiveInformationTypeRuleCondition `
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (New-DlpSensitiv...peRuleCondition:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
-SensitiveInformationType : The term '-SensitiveInformationType' is not recognized as the name of a cmdlet, function,
script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is
correct and try again.
At line:5 char:2
+ -SensitiveInformationType @{Name="Credit Card Number" ; MinCount=1} ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ObjectNotFound: (-SensitiveInformationType:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
What can I do ?
Sokoban