Skip to content

Commit 8319090

Browse files
Merge pull request #975 from starringGTM/gautam/UpdateDocumentation
Added docs for M365 Agent Insights cmdlets.
2 parents 8923bc1 + 9ddf536 commit 8319090

File tree

3 files changed

+286
-0
lines changed

3 files changed

+286
-0
lines changed
Lines changed: 141 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,141 @@
1+
---
2+
external help file: Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
3+
Module Name: Microsoft.Online.SharePoint.PowerShell
4+
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/get-SPOM365AgentAccessInsightsReport
5+
applicable: SharePoint Online
6+
title: Get-SPOM365AgentAccessInsightsReport
7+
schema: 2.0.0
8+
author: starringGTM
9+
ms.author: gchaudhary
10+
ms.reviewer:
11+
---
12+
13+
# Get-SPOM365AgentAccessInsightsReport
14+
15+
## SYNOPSIS
16+
17+
This cmdlet enables the administrator to check status of all active and available analytics reports when no report ID is present and to view or download a report if report ID is present.
18+
19+
> [!NOTE]
20+
> The feature associated with this cmdlet will be rolling out soon.
21+
22+
## SYNTAX
23+
24+
```
25+
Get-SPOM365AgentAccessInsightsReport [-ReportId <Guid>] [-Action <ActionType>]
26+
[-Content <M365AgentsOnSites>] [<CommonParameters>]
27+
```
28+
29+
## DESCRIPTION
30+
31+
If this cmdlet is executed without any parameters, it displays the status of all active and completed reports.
32+
> [!NOTE]
33+
> All reports adhere to any retention timeline as per [Data Access Governance](/sharepoint/data-access-governance-reports).
34+
35+
## EXAMPLES
36+
37+
### EXAMPLE 1
38+
39+
```powershell
40+
Get-SPOM365AgentAccessInsightsReport
41+
```
42+
43+
Example 1 enables administrator to view the status of all active and completed analytics reports.
44+
45+
### EXAMPLE 2
46+
47+
```powershell
48+
Get-SPOM365AgentAccessInsightsReport –ReportId 9d946216-afe7-49f5-8267-7b662435c70b
49+
```
50+
51+
Example 2 enables administrator to view the Microsoft 365 agent insight report of the given report ID.
52+
53+
### EXAMPLE 3
54+
55+
```powershell
56+
Get-SPOM365AgentAccessInsightsReport – ReportId 9d946216-afe7-49f5-8267-7b662435c70b -Action Download
57+
```
58+
59+
Example 3 enables administrator to download the Microsoft 365 agent insight report of the given report ID to the same path from where the command was run.
60+
61+
## PARAMETERS
62+
63+
### -Action
64+
65+
> Applicable: SharePoint Online
66+
67+
It determines whether a report would be viewed or downloaded. If the value of `-Action` is set as `View`, it will display the output on the PowerShell screen. Else if the value of `-Action` is set as `Download`, it will download the full report in CSV format to the same path from where the command was run.
68+
69+
```yaml
70+
Type: ActionType
71+
Parameter Sets: (All)
72+
Aliases:
73+
Accepted values: View, Download
74+
75+
Required: False
76+
Position: Named
77+
Default value: View
78+
Accept pipeline input: False
79+
Accept wildcard characters: False
80+
```
81+
82+
### -Content
83+
84+
> Applicable: SharePoint Online
85+
86+
It specifies the kind of report to view or download.
87+
88+
If this cmdlet is executed with `-Content` as `M365AgentsOnSites`, a report with list of all sites on which a agent is created along with the names of the agent created in the specified number of days will be displayed.
89+
90+
If this cmdlet is executed with `-ReportId` as parameter and `-Content` as `SiteDistribution`, a report showing Microsoft 365 agents distribution across sites in the specified number of days will be displayed.
91+
92+
```yaml
93+
Type: Microsoft.Online.SharePoint.TenantAdministration.SPOM365AgentInsightType
94+
Parameter Sets: (All)
95+
Aliases:
96+
Accepted values: M365AgentsOnSites, SiteDistribution
97+
98+
Required: False
99+
Position: Named
100+
Default value: M365AgentsOnSites
101+
Accept pipeline input: False
102+
Accept wildcard characters: False
103+
```
104+
105+
### -ReportId
106+
107+
> Applicable: SharePoint Online
108+
109+
It specifies the unique ID of the report to be viewed or downloaded.
110+
111+
```yaml
112+
Type: System.Guid
113+
Parameter Sets: (All)
114+
Aliases:
115+
116+
Required: False
117+
Position: Named
118+
Default value: None
119+
Accept pipeline input: False
120+
Accept wildcard characters: False
121+
```
122+
123+
### CommonParameters
124+
125+
This cmdlet supports the common parameters: `-Debug`, `-ErrorAction`, `-ErrorVariable`, `-InformationAction`, `-InformationVariable`, `-OutVariable`, `-OutBuffer`, `-PipelineVariable`, `-Verbose`, `-WarningAction`, and `-WarningVariable`. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
126+
127+
## INPUTS
128+
129+
### None
130+
131+
## OUTPUTS
132+
133+
### System.Object
134+
135+
## NOTES
136+
137+
## RELATED LINKS
138+
139+
[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online)
140+
141+
[Start-SPOM365AgentAccessInsightsReport](./Start-SPOM365AgentAccessInsightsReport.md)

sharepoint/sharepoint-ps/Microsoft.Online.SharePoint.PowerShell/Microsoft.Online.SharePoint.PowerShell.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -240,6 +240,9 @@ Gets the status for a file version expiration report generation job for a docume
240240
### [Get-SPOListVersionPolicy](Get-SPOListVersionPolicy.md)
241241
Gets the version policy setting on the document library.
242242

243+
### [Get-SPOM365AgentAccessInsightsReport](Get-SPOM365AgentAccessInsightsReport.md)
244+
This cmdlet enables the administrator to check status of all active and available Microsoft 365 Agent Insights reports when no report ID is present and to view or download a report if report ID is present. > [!NOTE] > The feature associated with this cmdlet will be rolling out soon.
245+
243246
### [Get-SPOMalwareFile](Get-SPOMalwareFile.md)
244247
Extracts and displays the malware-related information of an infected file stored in SharePoint.
245248

@@ -804,6 +807,9 @@ This cmdlet enables administrator to trigger the build of a new enterprise appli
804807
### [Start-SPOInformationBarriersInsightsReport](Start-SPOInformationBarriersInsightsReport.md)
805808
Generates a new report to identify and discover the usage patterns of Information Barriers (IB) across SharePoint sites and OneDrive accounts in the organization.
806809

810+
### [Start-SPOM365AgentAccessInsightsReport](Start-SPOM365AgentAccessInsightsReport.md)
811+
Using this cmdlet, administrators may trigger the build of a new Microsoft 365 agent insight report for the specified number of days. > [!NOTE] > The feature associated with this cmdlet will be rolling out soon.
812+
807813
### [Start-SPORestrictedAccessForSitesInsights](Start-SPORestrictedAccessForSitesInsights.md)
808814
This cmdlet enables administrator to trigger the build of a new restricted access control insights report for the data from last 28 days.
809815

Lines changed: 139 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,139 @@
1+
---
2+
external help file: Microsoft.Online.SharePoint.PowerShell.dll-Help.xml
3+
Module Name: Microsoft.Online.SharePoint.PowerShell
4+
online version: https://learn.microsoft.com/powershell/module/sharepoint-online/start-spom365agentaccessinsightsreport
5+
applicable: SharePoint Online
6+
title: Start-SPOM365AgentAccessInsightsReport
7+
schema: 2.0.0
8+
author: starringGTM
9+
ms.author: gchaudhary
10+
ms.reviewer:
11+
---
12+
13+
# Start-SPOM365AgentAccessInsightsReport
14+
15+
## SYNOPSIS
16+
17+
Using this cmdlet, administrators may trigger the build of a new Microsoft 365 agent insight report for the specified number of days.
18+
19+
> [!NOTE]
20+
> The feature associated with this cmdlet will be rolling out soon.
21+
22+
## SYNTAX
23+
24+
```
25+
Start-SPOM365AgentAccessInsightsReport [-Force] [-ReportPeriodInDays <Int32>] [-WhatIf] [-Confirm]
26+
[<CommonParameters>]
27+
```
28+
29+
## DESCRIPTION
30+
31+
After executing this cmdlet, the Microsoft 365 agent insight report generation request for the specified number of days is added to the pipeline queue.
32+
33+
## EXAMPLES
34+
35+
### EXAMPLE 1
36+
37+
```powershell
38+
Start-SPOM365AgentAccessInsightsReport
39+
```
40+
41+
Example 1 generates the Microsoft 365 agent insight report for a default duration of 1 day since the parameter `–ReportPeriodInDays` is not provided.
42+
43+
### EXAMPLE 2
44+
45+
```powershell
46+
Start-SPOM365AgentAccessInsightsReport –ReportPeriodInDays 14
47+
```
48+
49+
Example 2 generates the Copilot agent insight report for a specified duration of 14 days.
50+
51+
## PARAMETERS
52+
53+
### -Force
54+
55+
> Applicable: SharePoint Online
56+
57+
It is an optional parameter which is used to bypass confirmation prompts and execute the command without interruptions.
58+
59+
```yaml
60+
Type: System.Management.Automation.SwitchParameter
61+
Parameter Sets: (All)
62+
Aliases:
63+
64+
Required: False
65+
Position: Named
66+
Default value: None
67+
Accept pipeline input: False
68+
Accept wildcard characters: False
69+
```
70+
71+
### -ReportPeriodInDays
72+
73+
> Applicable: SharePoint Online
74+
75+
It specifies the duration of the M365 agent insight report in days. The possible values of ReportPeriodInDays are: 1, 7, 14, 28. If this parameter is not provided, it generates the report for a default duration of 1 day.
76+
77+
```yaml
78+
Type: System.Int32
79+
Parameter Sets: (All)
80+
Aliases:
81+
82+
Required: False
83+
Position: Named
84+
Default value: None
85+
Accept pipeline input: False
86+
Accept wildcard characters: False
87+
```
88+
89+
### -Confirm
90+
Prompts you for confirmation before running the cmdlet.
91+
92+
```yaml
93+
Type: System.Management.Automation.SwitchParameter
94+
Parameter Sets: (All)
95+
Aliases: cf
96+
97+
Required: False
98+
Position: Named
99+
Default value: None
100+
Accept pipeline input: False
101+
Accept wildcard characters: False
102+
```
103+
104+
### -WhatIf
105+
Shows what would happen if the cmdlet runs.
106+
The cmdlet is not run.
107+
108+
```yaml
109+
Type: System.Management.Automation.SwitchParameter
110+
Parameter Sets: (All)
111+
Aliases: wi
112+
113+
Required: False
114+
Position: Named
115+
Default value: None
116+
Accept pipeline input: False
117+
Accept wildcard characters: False
118+
```
119+
120+
### CommonParameters
121+
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
122+
123+
## INPUTS
124+
125+
### None
126+
127+
## OUTPUTS
128+
129+
### System.Object
130+
131+
## NOTES
132+
133+
## RELATED LINKS
134+
135+
[Getting started with SharePoint Online Management Shell](/powershell/sharepoint/sharepoint-online/connect-sharepoint-online)
136+
137+
138+
[Get-SPOM365AgentAccessInsightsReport](./Get-SPOM365AgentAccessInsightsReport.md)
139+

0 commit comments

Comments
 (0)