Skip to content

Commit f0a6fd7

Browse files
committed
Fixes examples.
1 parent d28325a commit f0a6fd7

File tree

1 file changed

+8
-43
lines changed

1 file changed

+8
-43
lines changed

sharepoint/sharepoint-ps/sharepoint-online/Export-SPOQueryLogs.md

Lines changed: 8 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ external help file: Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
33
Module Name: microsoft.online.sharepoint.powershell
44
online version:
55
applicable: SharePoint Online
6-
title: Export-SPOUserInfo
6+
title: Export-SPOQueryLogs
77
schema: 2.0.0
88
---
99

@@ -16,11 +16,7 @@ Export query logs for a user in an Office 365 tenant.
1616
## SYNTAX
1717

1818
```
19-
Export-SPOQueryLogs -LoginName <String> [-StartTime <DateTime>] [-OutputFolder <String>] [<CommonParameters>]
20-
```
21-
22-
```
23-
Export-SPOUserInfo -LoginName <String> -Site <SpoSitePipeBind> -OutputFolder <String> [<CommonParameters>]
19+
Export-SPOQueryLogs [-StartTime <DateTime>] -LoginName <String> -OutputFolder <String> [<CommonParameters>]
2420
```
2521

2622
## DESCRIPTION
@@ -35,22 +31,16 @@ For permissions and the most current information about Windows PowerShell for Sh
3531

3632
### ------------ Example 1 --------------------
3733
```
38-
Export-SPOUserInfo -LoginName joe.healy@contoso.com -site https://contoso.sharepoint.com/sites/sc1 -OutputFolder "C:\users\admin\exportfolder"
34+
Export-SPOQueryLogs -LoginName user1@contoso.sharepoint.com
3935
```
40-
Example 1 exports a user data who has the e-mail address joe.healy@contoso.com from the site collection https://contoso.sharepoint.com/sites/sc1 to folder C:\users\admin\exportfolder.
36+
Example 1 exports the query log for a user who has the e-mail address user1@contoso.harepoint.com to the two files user1@contoso.sharepoint.com_queries.csv and user1@contoso.sharepoint.com_personalQueries.csv, in the current working folder.
4137

4238

4339
### ------------ Example 2 --------------------
4440
```
45-
$sites = Get-SPOSite -IncludePersonalSite $true
46-
$user = "joe.healy@contoso.com"
47-
foreach ($site in $sites)
48-
{
49-
Export-SPOUserInfo -LoginName $user -site $site.Url -OutputFolder
50-
"C:\users\admin\exportfolder"
51-
}
41+
Export-SPOQueryLogs -LoginName user1@contoso.sharepoint.com -StartTime “2018-10-21” -OutputFolder “c:\users\contosoadmin\Documents”
5242
```
53-
Example 2 exports user data who has email address joe.healy@contoso.com from all site collections to folder C:\users\admin\exportfolder.
43+
Example 2 exports the query log from the starting time 21. October 2018, for a user who has the e-mail address user1@contoso.sharepoint.com, to the two files user1@contoso.sharepoint.com_queries.csv and user1@contoso.sharepoint.com_personalQueries.csv, in the folder c:\users\contosoadmin\Documents.
5444

5545
## PARAMETERS
5646

@@ -70,24 +60,8 @@ Accept pipeline input: False
7060
Accept wildcard characters: False
7161
```
7262
73-
### -Site
74-
Specifies the URL of the site collection to which you want to export the user.
75-
76-
```yaml
77-
Type: SpoSitePipeBind
78-
Parameter Sets: (All)
79-
Aliases:
80-
Applicable: SharePoint Online
81-
82-
Required: True
83-
Position: Named
84-
Default value: None
85-
Accept pipeline input: False
86-
Accept wildcard characters: False
87-
```
88-
8963
### -OutputFolder
90-
Target folder where teh CSV file is generated.
64+
Target folder where the CSV file is generated.
9165
9266
```yaml
9367
Type: String
@@ -103,7 +77,7 @@ Accept wildcard characters: False
10377
```
10478
10579
### -StartTime
106-
{{Fill StartTime Description}}
80+
Specifies from which point of time to export the logs from. Use the date format YYYY-MM-DD.
10781
10882
```yaml
10983
Type: DateTime
@@ -138,12 +112,3 @@ For more information, see about_CommonParameters (http://go.microsoft.com/fwlink
138112
[Introduction to the SharePoint Online management shell]()
139113
140114
[Set up the SharePoint Online Management Shell Windows PowerShell environment]()
141-
142-
[New-SPOSiteGroup](New-SPOSiteGroup.md)
143-
144-
[Get-SPOUser](Get-SPOUser.md)
145-
146-
[Set-SPOUser](Set-SPOUser.md)
147-
148-
[Remove-SPOUser](Remove-SPOUser.md)
149-

0 commit comments

Comments
 (0)