mirror of
https://github.com/admindroid-community/powershell-scripts.git
synced 2025-12-18 00:45:19 +00:00
Export Microsoft 365 Group Report
Export Microsoft 365 Group Report
This commit is contained in:
parent
ef957fb61c
commit
3378b5cc3d
@ -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()
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user