external help file | Module Name | online version | schema |
---|---|---|---|
M365.Report.Tools-help.xml |
M365.Report.Tools |
2.0.0 |
List all groups and group types from Azure AD including source of authority.
Get-M365GroupReport [-All] [-DynamicOnly] [-UnifiedOnly] [-SecurityOnly] [-DistroOnly]
List out all groups in Azure AD. Easily filter by security groups, O365 (unified) groups, dynamic groups, distribution groups or list all. Outputs group name, object ID, MailEnabled, Mail, and source (OnPrem or Cloud) and dynamic membership rule.
PS C:\> Get-M365GroupReport | Export-CSV -notypeinformation -path C:\reports\AzADGroupReport.csv
Export a list of all groups to a CSV file.
PS C:\> Get-M365GroupReport | Export-Excel -path C:\reports\M365MasterReport.xlsx -worksheetname M365GroupReport -tablename GroupReport -Autosize
Export a list of all groups into an excel workbook as a table on an excel worksheet.
This will output all grouptypes.
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
List only distribution groups
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
List only dynamic membership groups
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
List only security enabled groups
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
List only Office 365 groups
Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.