Spellbook
1.1.0
M365 helpdesk toolkit for user lifecycle, tenant auditing, mailbox management, MFA and Exchange. Built for MSP engineers.
Minimum PowerShell version
5.1
Installation Options
Owners
Copyright
(c) 2026 Stephen Vella (email@stephenvella.work). All rights reserved.
Package Details
Author(s)
- Stephen Vella
Tags
M365 Microsoft365 Exchange Helpdesk MSP Entra PowerShell Toolkit MFA Offboarding Onboarding
Functions
invoke new-user offboard-user set-userlicence get-userreport get-allusers get-inactiveusers get-mfaaudit get-guestaudit get-signinlogs get-tenantreport check-mailflow get-sharedmailboxaudit set-forwarding remove-forwarding get-mailboxperms get-userperms add-mailboxperms disable-autocalevents get-groupmembers kill-graph get-smsmfa set-smsmfa add-smsmfa add-tap remove-taps inherit-permissions
Dependencies
-
- ExchangeOnlineManagement (>= 3.7.0)
- Microsoft.Graph.Authentication (>= 2.0.0)
- Microsoft.Graph.Groups (>= 2.0.0)
- Microsoft.Graph.Identity.DirectoryManagement (>= 2.0.0)
- Microsoft.Graph.Identity.SignIns (>= 2.0.0)
- Microsoft.Graph.Reports (>= 2.0.0)
- Microsoft.Graph.Users (>= 2.0.0)
- Microsoft.Graph.Users.Actions (>= 2.0.0)
Release Notes
1.1.0 — Added: kill-graph, set/remove-forwarding, get/add-mailboxperms, get-userperms, get/set/add-smsmfa, add-tap, remove-taps, disable-autocalevents, inherit-permissions, Pester smoke tests + GitHub Actions verify workflow. Changed: check-mailflow migrated to Get-MessageTraceV2/Get-MessageTraceDetailV2 (V1 cmdlets are deprecated by Microsoft); RequiredModules expanded to declare every Graph submodule actually used (.Authentication, .Users.Actions, .Groups, .Identity.DirectoryManagement, .Reports). Fixed: offboard-user no longer silently swallows per-item failures during group/role/MFA cleanup; kill-graph no longer throws when no Graph context exists; get-allusers no longer aborts on accounts with null UPN.
FileList
- Spellbook.nuspec
- LICENSE
- Public\add-mailboxperms.ps1
- Public\add-smsmfa.ps1
- Public\add-tap.ps1
- Public\check-mailflow.ps1
- Public\disable-autocalevents.ps1
- Public\get-allusers.ps1
- Public\get-groupmembers.ps1
- Public\get-guestaudit.ps1
- Public\get-inactiveusers.ps1
- Public\get-mailboxperms.ps1
- Public\get-mfaaudit.ps1
- Public\get-sharedmailboxaudit.ps1
- Public\get-signinlogs.ps1
- Public\get-smsmfa.ps1
- Public\get-tenantreport.ps1
- Public\get-userperms.ps1
- Public\get-userreport.ps1
- Public\inherit-permissions.ps1
- Public\kill-graph.ps1
- Public\new-user.ps1
- Public\offboard-user.ps1
- Public\remove-forwarding.ps1
- Public\remove-taps.ps1
- Public\set-forwarding.ps1
- Public\set-smsmfa.ps1
- Public\set-userlicence.ps1
- Spellbook.psd1
- Spellbook.psm1
Version History
| Version | Downloads | Last updated |
|---|---|---|
| 1.3.0 | 8 | 5/13/2026 |
| 1.2.0 | 9 | 5/13/2026 |
| 1.1.0 (current version) | 5 | 5/12/2026 |