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

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Module -Name Spellbook -RequiredVersion 1.1.0

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

Install-PSResource -Name Spellbook -Version 1.1.0

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

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

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

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