|
| 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) |
0 commit comments