Skip to content

Commit f3d72cf

Browse files
committed
Final updates to New-ComplianceSearchAction
PM to review
1 parent 3a4e403 commit f3d72cf

File tree

2 files changed

+38
-33
lines changed

2 files changed

+38
-33
lines changed

exchange/exchange-ps/exchange/mailboxes/Set-Mailbox.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2564,7 +2564,7 @@ This parameter is available only in Exchange Online.
25642564
25652565
The ExcludeFromOrgHolds parameter excludes the mailbox from one or more organization-wide Office 365 retention policies. This parameter can only be used for inactive mailboxes. A valid value for this parameter is the GUID of the organization-wide Office 365 retention policy that the inactive mailbox is excluded from. To find the GUID values of organization-wide Office 365 retention policies, run the command Get-OrganizationConfig | Format-List InplaceHolds. Note that retention policies assigned to mailboxes are prefaced by 'mbx'.
25662566
2567-
You can specify multiple values for this parameter by using the syntax GUID1,”GUID2”,…”GUIDX.
2567+
You can specify multiple values for this parameter by using the syntax "GUID1",”GUID2",…"GUIDX".
25682568
25692569
When you use this parameter, use the DistinguishedName or ExchangeGuid property value for the identity of the inactive mailbox (those are the values that guarantee uniqueness).
25702570

exchange/exchange-ps/exchange/policy-and-compliance-content-search/New-ComplianceSearchAction.md

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,21 @@ monikerRange: "exchserver-ps-2016 || o365scc-ps"
1111
## SYNOPSIS
1212
This cmdlet is available in on-premises Exchange and in the cloud-based service. Some parameters and settings may be exclusive to one environment or the other.
1313

14-
Use the New-ComplianceSearchAction cmdlet to create actions for compliance searches in Exchange Server 2016 and in the Office 365 Security & Compliance Center.
14+
Use the New-ComplianceSearchAction cmdlet to create actions for content searches in Exchange Server and in the Office 365 Security & Compliance Center.
1515

1616
For information about the parameter sets in the Syntax section below, see Exchange cmdlet syntax (https://technet.microsoft.com/library/bb123552.aspx).
1717

1818
## SYNTAX
1919

2020
### Export
2121
```
22-
New-ComplianceSearchAction [[-SearchName] <String[]>]
22+
New-ComplianceSearchAction [-SearchName] <String[]> [-Export]
2323
[-ActionName <String>]
2424
[-ArchiveFormat <ComplianceExportArchiveFormat>]
2525
[-Confirm]
2626
[-FileTypeExclusionsForUnindexedItems <String[]>]
2727
[-EnableDedupe <Boolean>]
2828
[-ExchangeArchiveFormat <ComplianceExportArchiveFormat>]
29-
[-Export]
3029
[-Force]
3130
[-Format <ComplianceDataTransferFormat>]
3231
[-IncludeCredential]
@@ -49,13 +48,12 @@ New-ComplianceSearchAction [[-SearchName] <String[]>]
4948

5049
### Preview
5150
```
52-
New-ComplianceSearchAction [[-SearchName] <String[]>]
51+
New-ComplianceSearchAction [-SearchName] <String[]> [-Preview]
5352
[-ActionName <String>]
5453
[-Confirm]
5554
[-Force]
5655
[-Format <ComplianceDataTransferFormat>]
5756
[-IncludeCredential] [-JobOptions <Int32>]
58-
[-Preview]
5957
[-ReferenceActionName <String>]
6058
[-Region <String>]
6159
[-RetryOnError]
@@ -67,14 +65,13 @@ New-ComplianceSearchAction [[-SearchName] <String[]>]
6765

6866
### Purge
6967
```
70-
New-ComplianceSearchAction [[-SearchName] <String[]>]
71-
[-ActionName <String>
68+
New-ComplianceSearchAction [-SearchName] <String[]> [-Purge]
69+
[-ActionName <String>]
7270
[-Confirm]
7371
[-Force]
7472
[-Format <ComplianceDataTransferFormat>]
7573
[-IncludeCredential]
7674
[-JobOptions <Int32>]
77-
[-Purge]
7875
[-PurgeType <ComplianceDestroyType>]
7976
[-Region <String>]
8077
[-ReferenceActionName <String>]
@@ -86,7 +83,7 @@ New-ComplianceSearchAction [[-SearchName] <String[]>]
8683
```
8784

8885
## DESCRIPTION
89-
After you create a compliance search using the New-ComplianceSearch cmdlet and run it using the Start-ComplianceSearch cmdlet, you assign a search action to the search using the New-ComplianceSearchAction cmdlet.
86+
After you create a content search using the New-ComplianceSearch cmdlet and run it using the Start-ComplianceSearch cmdlet, you assign a search action to the search using the New-ComplianceSearchAction cmdlet.
9087

9188
In on-premises Exchange, this cmdlet is available in the Mailbox Search role. By default, this role is assigned only to the Discovery Management role group, and not to the Organization Management role group.
9289

@@ -101,35 +98,43 @@ You need to be assigned permissions in the Office 365 Security & Compliance Cent
10198
New-ComplianceSearchAction -SearchName "Project X" -Preview
10299
```
103100

104-
This example creates a preview search action for the compliance search named Project X.
101+
This example creates a preview search action for the content search named Project X.
105102

106103
### -------------------------- Example 2 --------------------------
107104
```
108105
New-ComplianceSearchAction -SearchName "Project X" -Export
109106
```
110107

111-
This example creates an export search action for the compliance search named Project X.
108+
This example creates an export search action for the content search named Project X.
112109

113110
### -------------------------- Example 3 --------------------------
114111
```
115112
New-ComplianceSearchAction -SearchName "Remove Phishing Message" -Purge -PurgeType SoftDelete
116113
```
117114

118-
This example deletes the search results returned by a compliance search named Remove Phishing Message. Note that unindexed items aren't deleted when you use the Purge parameter.
115+
This example deletes the search results returned by a content search named Remove Phishing Message. Note that unindexed items aren't deleted when you use the Purge parameter.
116+
117+
### -------------------------- Example 4 --------------------------
118+
119+
```
120+
New-ComplianceSearchAction -SearchName "Case 321 All Sites" -Export -SharePointArchiveFormat SingleZip
121+
```
122+
123+
This example exports the results returned by the content search named "Case 321 All Sites". The search results are compressed and exported to a single ZIP file. If the search included any Exchange locations, the search results are exported as one PST file per mailbox (the default value of the ExchangeArchiveFormat parameter).
119124

120125
## PARAMETERS
121126

122127
### -SearchName
123-
The SearchName parameter specifies the name of the existing compliance search to associate with the compliance search action. You can specify multiple compliance searches separated by commas.
128+
The SearchName parameter specifies the name of the existing content search to associate with the content search action. You can specify multiple content searches separated by commas.
124129

125-
You can find the compliance search by running the command Get-ComplianceSearch | Format-Table -Auto Name,Status.
130+
You can find the content search by running the command Get-ComplianceSearch | Format-Table -Auto Name,Status.
126131

127132
```yaml
128133
Type: String[]
129134
Parameter Sets: (All)
130135
Aliases:
131136
Applicable: Exchange Server 2016, Office 365 Security & Compliance Center
132-
Required: False
137+
Required: True
133138
Position: 1
134139
Default value: None
135140
Accept pipeline input: False
@@ -139,7 +144,7 @@ Accept wildcard characters: False
139144
### -ActionName
140145
This parameter is available only in the cloud-based service.
141146
142-
The ActionName parameter specifies a name for the compliance search action. You use this parameter only when you specify multiple compliance searches in the SearchName parameter.
147+
The ActionName parameter specifies a name for the content search action. You use this parameter only when you specify multiple content searches in the SearchName parameter.
143148
144149
```yaml
145150
Type: String
@@ -160,7 +165,7 @@ This parameter requires the Export role in the Security & Compliance Center. By
160165
161166
This parameter has been deprecated and is no longer used.
162167
163-
To specify the format for Exchange search results, use the SharePointArchiveFormat parameter.
168+
To specify the format for Exchange search results, use the ExchangeArchiveFormat parameter. To specify the format for SharePoint and OneDrive search results, use the SharePointArchiveFormat parameter.
164169
165170
```yaml
166171
Type: ComplianceExportArchiveFormat
@@ -196,7 +201,7 @@ Accept wildcard characters: False
196201
### -EnableDedupe
197202
This parameter is available only in the cloud-based service.
198203
199-
The EnableDedupe parameter eliminates duplication of messages when you export compliance search results. Valid values are:
204+
The EnableDedupe parameter eliminates duplication of messages when you export content search results. Valid values are:
200205
201206
- $true: Export a single copy of a message if the same message exists in multiple folders or mailboxes.
202207
@@ -229,11 +234,11 @@ The ExchangeArchiveFormat parameter specifies how to export Exchange search resu
229234
230235
- IndividualMessage: Export each message as an .msg message file.
231236
232-
- SingleZip: One ZIP file for all mailboxes. The ZIP file contains all exported .msg message files from all mailboxes.
237+
- PerUserZip: One ZIP file for each mailbox. Each ZIP file contains the exported .msg message files from the mailbox. This value corresponds to the "export files in a compressed folder" checkbox in the Security & Compliance Center.
233238
234-
- PerUserZip: One ZIP file for each mailbox. Each ZIP file contains the exported .msg message files from the mailbox.
239+
- SingleZip: One ZIP file for all mailboxes. The ZIP file contains all exported .msg message files from all mailboxes. This output setting is only available in PowerShell.
235240
236-
To specify the format for SharePoint and OneDrive search results, use the ArchiveFormat parameter.
241+
To specify the format for SharePoint and OneDrive search results, use the SharePointArchiveFormat parameter.
237242
238243
```yaml
239244
Type: ComplianceExportArchiveFormat
@@ -252,7 +257,7 @@ This parameter is available only in the cloud-based service.
252257
253258
This parameter requires the Export role in the Security & Compliance Center. By default, the Export role is assigned only to the eDiscovery Manager role group.
254259
255-
The Export switch specifies the action for the compliance search is to export the full set of results that match the search criteria. You don't need to specify a value with this switch.
260+
The Export switch specifies the action for the content search is to export the full set of results that match the search criteria. You don't need to specify a value with this switch.
256261
257262
To only return the information about each detected item in a report, use the Report switch.
258263
@@ -413,7 +418,7 @@ Accept wildcard characters: False
413418
```
414419
415420
### -Preview
416-
The Preview switch specifies the action for the compliance search is to preview the results that match the search criteria. You don't need to specify a value with this switch.
421+
The Preview switch specifies the action for the content search is to preview the results that match the search criteria. You don't need to specify a value with this switch.
417422
418423
In the Security & Compliance Center, this parameter requires the Preivew role. By default, the Preview role is assigned only to the eDiscovery Manager role group.
419424
@@ -430,7 +435,7 @@ Accept wildcard characters: False
430435
```
431436
432437
### -Purge
433-
The Purge switch specifies the action for the compliance search is to remove items that match the search criteria. You don't need to specify a value with this switch.
438+
The Purge switch specifies the action for the content search is to remove items that match the search criteria. You don't need to specify a value with this switch.
434439
435440
Note that a maximum of 10 items per mailbox can be removed at one time. Because the capability to search for and remove messages is intended to be an incident-response tool, this limit helps ensure that messages are quickly removed from mailboxes. This action isn't intended to clean up user mailboxes.
436441
@@ -502,7 +507,7 @@ Accept wildcard characters: False
502507
### -Report
503508
This parameter is available only in the cloud-based service.
504509
505-
The Report switch specifies the action for the compliance search is to export a report about the results (information about each item instead of the full set of results) that match the search criteria. You don't need to specify a value with this switch.
510+
The Report switch specifies the action for the content search is to export a report about the results (information about each item instead of the full set of results) that match the search criteria. You don't need to specify a value with this switch.
506511
507512
```yaml
508513
Type: SwitchParameter
@@ -517,7 +522,7 @@ Accept wildcard characters: False
517522
```
518523
519524
### -RetentionReport
520-
The RetentionReport switch specifies the action for the compliance search is to export a retention report. You don't need to specify a value with this switch.
525+
The RetentionReport switch specifies the action for the content search is to export a retention report. You don't need to specify a value with this switch.
521526
522527
```yaml
523528
Type: SwitchParameter
@@ -584,7 +589,7 @@ The Scope parameter specifies the items to include when the action is Export. Va
584589
585590
- BothIndexedAndUnindexedItems
586591
587-
This parameter is only meaningful for compliance searches where the IncludeUnindexedItemsEnabled parameter is set to $true.
592+
This parameter is only meaningful for content searches where the IncludeUnindexedItemsEnabled parameter is set to $true.
588593
589594
```yaml
590595
Type: ComplianceExportScope
@@ -620,9 +625,9 @@ Accept wildcard characters: False
620625
### -SearchNames
621626
This parameter is available only in the cloud-based service.
622627
623-
The SearchNames parameter specifies the names of the existing compliance searches to associate with the compliance search action. You separate the compliance searche names by commas.
628+
The SearchNames parameter specifies the names of the existing content searches to associate with the content search action. You separate the content searche names by commas.
624629
625-
You can find compliance search names by running the command Get-ComplianceSearch | Format-Table -Auto Name,Status.
630+
You can find content search names by running the command Get-ComplianceSearch | Format-Table -Auto Name,Status.
626631
627632
```yaml
628633
Type: String[]
@@ -643,11 +648,11 @@ This parameter requires the Export role in the Office 365 Security & Compliance
643648
644649
The SharePointArchiveFormat parameter specifies how to export SharePoint and OneDrive search results. Valid values are:
645650
646-
- IndividualMessage: Export the files uncompressed.
651+
- IndividualMessage: Export the files uncompressed. This is the default value.
647652
648-
- SingleZip: Export the search restuls to a ZIP file.
653+
- PerUserZip: One ZIP file for each user. Each ZIP file contains the exported files for the user. This value corresponds to the "export files in a compressed folder" checkbox in the Security & Compliance Center.
649654
650-
- PerUserZip: Export the search restuls to a ZIP file.
655+
- SingleZip: One ZIP file for all users. The ZIP file contains all exported files from all users. This output setting is only available in PowerShell.
651656
652657
To specify the format for Exchange search results, use the ExchangeArchiveFormat parameter.
653658

0 commit comments

Comments
 (0)