Skip to content

Update New-SensitiveInformationScanRule.md #12892

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 17, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 12 additions & 7 deletions exchange/exchange-ps/exchange/New-SensitiveInformationScanRule.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,17 @@ To use this cmdlet in Security & Compliance PowerShell, you need to be assigned

### Example 1
```powershell
{{ Add example code here }}
New-SensitiveInformationScan "SharePoint scan" -SharePointLocation All

New-SensitiveInformationScanRule "SharePoint scan rule" -ContentExtensionMatchesWords "pdf", "docx" -Policy "SharePoint scan" -Workload SharePoint
```

{{ Add example description here }}
This example creates a scan for all SharePoint sites scoped to pdf and docx files only. Use the New-SensitiveInformationScanRule only in combination with New-SensitiveInformationScan.

## PARAMETERS

### -Name
{{ Fill Name Description }}
The Name parameter specifes the unique rule name for the scan. If the value contains spaces, enclose the value in quotation marks.

```yaml
Type: String
Expand All @@ -66,7 +68,7 @@ Accept wildcard characters: False
```

### -Policy
{{ Fill Policy Description }}
The Policy parameter specifies the name of the parent scan policy for this rule. If the value contains spaces, enclose the value in quotation marks.

```yaml
Type: PolicyIdParameter
Expand Down Expand Up @@ -159,7 +161,7 @@ Accept wildcard characters: False
```

### -ContentCreatedOrUpdatedDateFrom
{{ Fill ContentCreatedOrUpdatedDateFrom Description }}
The ContentCreatedOrUpdatedDateFrom prameter specifies the earliest modification date-time of files that are considered in scope of this scan.

```yaml
Type: System.DateTime
Expand All @@ -175,7 +177,7 @@ Accept wildcard characters: False
```

### -ContentCreatedOrUpdatedDateTo
{{ Fill ContentCreatedOrUpdatedDateTo Description }}
The ContentCreatedOrUpdatedDateTo prameter specifies the latest modification date-time of files that are considered in scope of this scan.

```yaml
Type: System.DateTime
Expand Down Expand Up @@ -259,7 +261,10 @@ Accept wildcard characters: False
```

### -StartImpactAssessment
{{ Fill StartImpactAssessment Description }}
The StartImpactAssessment parameter specifies whether to start a scan estimation. Valid values are:

- $true: Start an scan estimation by default.
- $false: Prevent starting scan estimation by default.

```yaml
Type: Boolean
Expand Down