Skip to content
This repository has been archived by the owner on Apr 21, 2020. It is now read-only.

A PowerShell script to generate a report of Office 365 admin role/group membership.

License

Notifications You must be signed in to change notification settings

cunninghamp/Office365AdminGroupsReport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Office 365 Admin Groups Report

A PowerShell script to generate a report of Office 365 admin role/group membership.

This script produces a report of the membership of Office 365 admin role groups. The report is output to CSV file.

Usage

This script relies on the AzureAD PowerShell module, which you can install from the PowerShell Gallery.

  1. Download the latest release from the TechNet Script Gallery.
  2. Run the script using the usage examples below. You will be prompted to authenticate to Azure AD if you are not already connected.

Parameters

  • ReportFile - You can provide a custom output file name. The file name you specify will be modified with the current date, for example MyReportFileName.csv will become MyReportFileName-ddMMyyyy.csv. If a file of the same name exists, a unique character string will also be appended to the file name.

  • Overwrite - Overwrites an existing report file of the same name, instead of appending a unique character string.

Examples

.\Get-O365AdminGroupsReport.ps1
.\Get-O365AdminGroupsReport.ps1 -ReportFile MyReportFileName.csv -Overwrite
.\Get-O365AdminGroupsReport.ps1 -Verbose

Credits

Written by: Paul Cunningham

Find me on:

Check out my books and courses to learn more about Office 365 and Exchange Server.

About

A PowerShell script to generate a report of Office 365 admin role/group membership.

Resources

License

Stars

Watchers

Forks

Packages

No packages published