Skip to content

A PowerShell script that automates the security assessment of Microsoft Office 365 environments.

License

Notifications You must be signed in to change notification settings

dhislop/365Inspect

 
 

Repository files navigation

Purpose

Further the state of O365 security by authoring a PowerShell script that automates the security assessment of Microsoft Office 365 environments.

Setup

365Inspect requires the administrative PowerShell modules for Azure AD (We recommend installing the AzureADPreview module), Exchange administration, Microsoft Graph, Microsoft Intune, Microsoft Teams, and both the Sharepoint and PnP SharePoint administration modules.

The 365Inspect.ps1 PowerShell script will validate the installed modules and minimum version of the modules necessary for the Inspectors to function.

If you do not have these modules installed, you will be prompted to install them, and with your approval, the script will attempt installation. Otherwise, you should be able to install them with the following commands in an administrative PowerShell prompt, or by following the instructions at the references below:

Install-Module -Name AzureADPreview -AllowPrerelease -AllowClobber -Force -RequiredVersion 2.0.2.149

Install-Module -Name ExchangeOnlineManagement -AllowPrerelease -AllowClobber -Force -RequiredVersion 2.0.5

Install-Module -Name Microsoft.Online.SharePoint.PowerShell -AllowPrerelease -AllowClobber -Force -RequiredVersion 16.0.22601.12000

Install-Module -Name Microsoft.Graph -AllowPrerelease -AllowClobber -Force -RequiredVersion 1.9.6

Install-Module -Name Microsoft.Graph.Intune -AllowPrerelease -AllowClobber -Force -RequiredVersion 6.1907.1.0

Install-Module -Name PnP.PowerShell -AllowPrerelease -AllowClobber -Force -RequiredVersion 1.10.0

Install-Modu