Export Microsoft 365 Group Report

Export Microsoft 365 Group Report
This commit is contained in:
AdminDroid 2023-07-17 15:53:58 +05:30
parent ef957fb61c
commit 3378b5cc3d

View File

@ -1,8 +1,8 @@
<# <#
============================================================================================= =============================================================================================
Name: Microsoft 365 Group Report Name: Microsoft 365 Group Report
Description: This script exports Microsoft 365 groups and their membership to CSV Description: This script exports Microsoft 365 groups and their membership to CSV using Microsoft Graph PowerShell
Version: 1.0 Version: 3.0
website: o365reports.com website: o365reports.com
Script by: O365Reports Team Script by: O365Reports Team
For detailed Script execution: https://o365reports.com/2021/02/11/export-microsoft-365-group-report-to-csv-using-powershell For detailed Script execution: https://o365reports.com/2021/02/11/export-microsoft-365-group-report-to-csv-using-powershell
@ -182,8 +182,7 @@ Function main()
} }
} }
Write-Host "Connecting to Microsoft Graph..." Write-Host "Connecting to Microsoft Graph..."
$Scopes = @( $Scopes = @("Directory.Read.All"
"Group.Read.All"
) )
#Storing credential in script for scheduling purpose/ Passing credential as parameter #Storing credential in script for scheduling purpose/ Passing credential as parameter
$Error.Clear() $Error.Clear()