Giter Site home page Giter Site logo

ksagala / office365groupsreport Goto Github PK

View Code? Open in Web Editor NEW

This project forked from cunninghamp/office365groupsreport

0.0 1.0 0.0 34 KB

PowerShell script to generate a report about new, modified, and deleted Office 365 Groups

License: MIT License

PowerShell 100.00%

office365groupsreport's Introduction

Office 365 Group Report Script

Get-O365GroupReport.ps1 is a PowerShell script that generates an email report about new, modified, and deleted Office 365 Groups (also known as Unified Groups).

The script will store information about the Office 365 Groups in your tenant in a file named UnifiedGroups.xml, located in the same folder as the script. The first time you run the script, all Groups will be reported as "New". On subsequent runs, the script will use the previous results to determine which Groups are new, modified, or deleted since the last time the script was run.

##Installation

This script can make use of the following functions:

By adding those functions to your PowerShell profile you can streamline the running of Get-O365GroupReport.ps1. Without those functions, you'll need to run the script from an existing PowerShell session that is connected to Exchange Online, or you'll be prompted for credentials to connect to Exchange Online.

To install the script:

  1. Download the latest release from GitHub or the TechNet Script Gallery.
  2. Unzip the files to a folder on the workstation or server where you want to run the script.
  3. Rename Get-O365GroupReport.xml.sample to Get-O365GroupReport.xml
  4. Edit Get-O365GroupReport.xml with appropriate email settings for your environment. If you exclude the SMTP server, the script will send the report email to the first MX record for the domain of the To address.
  5. Run the script using the usage examples below.

##Configuration

You can customize the behavior of the script by editing settings in the Get-O365GroupReport.xml file.

  • HistoryItemsToKeep: defines the number of previous UnifiedGroups.xml files that will be preserved in the \history folder. The default is 10. History files might be useful to you for manual comparisons.
  • EmailOnlyIfChanges: controls whether to send the email report if there are no new, modified, or deleted groups detected. The default is 1, which means the email report will not send if there's no changes. If you prefer to receive the report every time, change the value to 0.

##Usage

Run the script in a PowerShell console.

.\Get-O365GroupReport.ps1

Run the script, using a stored credential to connect to Exchange Online.

.\Get-O365GroupReport.ps1 -UseCredential [email protected]

Run the script with verbose output.

.\Get-O365GroupReport.ps1 -Verbose

Run the script with manual SMTP settings that override the Get-O365GroupReport.xml configuration.

.\Get-O365GroupReport.ps1 -MailFrom [email protected] -MailTo [email protected] -MailSubject "Your custom subject" -SmtpServer mail.contoso.com

##Credits

Written by:

For more Office 365 tips, tutorials, and news check out Practical 365.

office365groupsreport's People

Contributors

cunninghamp avatar chrisbrownie avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.