Skip to content

Commit 45f5f6c

Browse files
authored
Merge branch 'master' into v-smandalika-4597486
2 parents 4cc369f + a1b8ea0 commit 45f5f6c

File tree

2 files changed

+9
-11
lines changed

2 files changed

+9
-11
lines changed

exchange/exchange-ps/exchange/New-UnifiedGroup.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ You need to be assigned permissions before you can run this cmdlet. Although thi
128128

129129
### Example 1
130130
```powershell
131-
New-UnifiedGroup -DisplayName "Engineering Department" -Alias engineering
131+
New-UnifiedGroup -DisplayName "Engineering Department" -Alias "engineering"
132132
```
133133

134134
This example creates a new Microsoft 365 Group named Engineering Department.

exchange/exchange-ps/exchange/Search-UnifiedAuditLog.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ If you want to programmatically download data from the Microsoft 365 audit log,
4747

4848
This cmdlet is available in Office 365 operated by 21Vianet, but it won't return any results.
4949

50+
The OutVariable parameter accepts objects of type ArrayList. Here's an example of how to use it:
51+
52+
`$start = (Get-Date).AddDays(-1); $end = (Get-Date).AddDays(-0.5); $auditData = New-Object System.Collections.ArrayList; Search-UnifiedAuditLog -StartDate $start -EndDate $end -OutVariable +auditData | Out-Null`
53+
5054
You need to be assigned permissions before you can run this cmdlet. Although this topic lists all parameters for the cmdlet, you may not have access to some parameters if they're not included in the permissions assigned to you. To find the permissions required to run any cmdlet or parameter in your organization, see [Find the permissions required to run any Exchange cmdlet](https://docs.microsoft.com/powershell/exchange/find-exchange-cmdlet-permissions).
5155

5256
## EXAMPLES
@@ -58,7 +62,7 @@ Search-UnifiedAuditLog -StartDate 5/1/2018 -EndDate 5/2/2018
5862

5963
This example searches the unified audit log for all events from May 1, 201812:00AM to May 2, 2018 12:00AM.
6064

61-
Note: If you don't include a timestamp in the value for the StartDate or EndDate parameters, the default timestamp 12:00 AM (midnight) is used.
65+
**Note**: If you don't include a timestamp in the value for the StartDate or EndDate parameters, the default timestamp 12:00 AM (midnight) is used.
6266

6367
### Example 2
6468
```powershell
@@ -67,8 +71,7 @@ Search-UnifiedAuditLog -StartDate "6/1/2018 8:00 AM" -EndDate "6/1/2018 6:00 PM"
6771

6872
This example searches the unified audit log for all Exchange admin events from 8:00 AM to 6:00 PM on June 1, 2018.
6973

70-
>[!NOTE]
71-
> If you use the same date for the StartDate and EndDate parameters, you have to include a timestamp; otherwise, no results will be returned because the date and time for the start and end dates will be the same.
74+
**Note** If you use the same date for the StartDate and EndDate parameters, you need to include a timestamp; otherwise, no results will be returned because the date and time for the start and end dates will be the same.
7275

7376
### Example 3
7477
```powershell
@@ -77,9 +80,7 @@ Search-UnifiedAuditLog -StartDate 5/1/2018 -EndDate 5/8/2018 -SessionId "Unified
7780

7881
This example searches the unified audit log for all events from May 1, 2018 to May 8, 2018. If you don't include a time stamp in the StartDate or EndDate parameters, The data is returned in pages as the command is rerun sequentially while using the same SessionId value.
7982

80-
>
81-
[!NOTE]
82-
> If you use the SessionCommand value ReturnLargeSet, and then you use the value ReturnNextPreviewPage for the same session ID, the results are limited to 10,000 records (not 50,000).
83+
**Note**: Always use the same SessionCommand value for a given SessionId value. Don't switch between ReturnLargeSet and ReturnNextPreviewPage for the same session ID. Otherwise, the output is limited to 10,000 results.
8384

8485
### Example 4
8586
```powershell
@@ -269,7 +270,7 @@ The SessionCommand parameter specifies how much information is returned and how
269270
- ReturnNextPreviewPage: This value causes the cmdlet to return data sorted on date. The maximum number of records returned through use of either paging or the ResultSize parameter is 5,000 records.
270271
- ReturnLargeSet: This value causes the cmdlet to return unsorted data. By using paging, you can access a maximum of 50,000 results.
271272

272-
**Note**: Always use the same SessionCommand value for a given SessionId value. Don't switch between ReturnLargeSet and ReturnNextPreviewPage for the same session ID.
273+
**Note**: Always use the same SessionCommand value for a given SessionId value. Don't switch between ReturnLargeSet and ReturnNextPreviewPage for the same session ID. Otherwise, the output is limited to 10,000 results.
273274

274275
```yaml
275276
Type: UnifiedAuditSessionCommand
@@ -348,9 +349,6 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
348349
## OUTPUTS
349350

350351
###
351-
The OutVariable parameter accepts objects of type ArrayList. Here's an example of how to use it:
352-
353-
$start = (Get-Date).AddDays(-1); $end = (Get-Date).AddDays(-0.5); $auditData = New-Object System.Collections.ArrayList; Search-UnifiedAuditLog -StartDate $start -EndDate $end -OutVariable +auditData | Out-Null
354352

355353
## NOTES
356354

0 commit comments

Comments
 (0)