Documenting customer Microsoft 365 environments can be extremely tedious and time consuming. Keeping that information up to date is also a heavy task to manage. I wanted to create some scripts that would automate and update documents in Syncro that are tied to your customer environments. For this reason I create a some scripts that perform the following:
- Microsoft License Information => Displays all current licensed and unlicensed users as well as showing what licenses are available vs. consumed
- Microsoft MFA Status => Displays MFA status, Conditional Access Policies, and DUO MFA custom controls
- Microsoft Exchange Information => Displays mailbox usage in GB, last login time, mailflow rules, DKIM Config, and ATP policies
- Microsoft Intune Information => Displays enrolled devices, compliance status, OS version, Autopilot info, encryption, and Assigned Apps
- Microsoft Contact Creation => Creates a contact on the customer record in Syncro for Active 365 Users
![](https://tminus365.com/wp-content/uploads/2021/04/pic8-1.png)
All of my scripts can be found at the following repository
![](https://tminus365.com/wp-content/uploads/2021/04/Syncro-Logo-768x205.png)
Microsoft License Report
The license report displays all active and consumed licensing as well as all licensed and unlicensed users
![](https://tminus365.com/wp-content/uploads/2021/04/pic6-1.png)
![](https://tminus365.com/wp-content/uploads/2021/04/pic7-1.png)
Microsoft MFA Status
- Legacy MFA Portal (where you see Enabled, Enforced, Disabled)
- Conditional Access Policies
- Security Defaults
![](https://tminus365.com/wp-content/uploads/2021/04/pic9-1.png)
![](https://tminus365.com/wp-content/uploads/2021/04/pic10-1.png)
Microsoft Exchange Report
For the exchange report, I show mailboxes, active consumption in GB (in a descending order), last login time, mailflow rules, DKIM Configuration, and ATP Settings/Policies
![](https://tminus365.com/wp-content/uploads/2021/04/pic11-1.png)
![](https://tminus365.com/wp-content/uploads/2021/04/pic12-1.png)
Microsoft Intune Report
The Intune report contains a summary of device compliance, devices, and all apps that are in an assigned state
![](https://tminus365.com/wp-content/uploads/2021/04/pic13-2.png)
Microsoft Contact Creation
![](https://tminus365.com/wp-content/uploads/2021/04/pic14-1.png)
Prerequisites
![](https://tminus365.com/wp-content/uploads/2021/04/pic15-1.png)