Skip to content

v0.2.0: IT Admin Tools for Microsoft 365

Choose a tag to compare

@MikeRiveira MikeRiveira released this 28 Nov 17:51
· 1 commit to main since this release
e800fcb

First release of IT Admin Tools for Microsoft 365, a PowerShell module for the jobs a multi-site IT team repeats every month.

Commands

Command What it answers
Get-LicenseReport Unassigned seats, and licensed users who are disabled or inactive
Get-StaleDevice Entra ID devices with no check-in for 90+ days
Get-MfaGap Members with no MFA, or (with -IncludeWeak) SMS/voice only
Get-ExternalForwarding New: mailboxes forwarding mail outside the company, by forwarding or inbox rules
Get-GuestUserReport New: guests with a pending invitation or no recent sign-in
Get-SharedMailboxLicense New: licensed shared mailboxes that probably don't need the license
Invoke-UserOffboarding Blocks sign-in, revokes sessions, converts the mailbox, removes groups and then licenses, with -WhatIf and a step log

Every command except Invoke-UserOffboarding is read-only.

Install

git clone https://github.com/MikeRiveira/it-admin-scripts
Import-Module ./it-admin-scripts/ITAdminTools/ITAdminTools.psd1

Requires PowerShell 7.2+ and the Microsoft Graph SDK (plus ExchangeOnlineManagement for the Exchange commands).

Quality

18 Pester tests and PSScriptAnalyzer run on Windows and Linux for every change. All test data uses a fictional company, Demo Auto Group.