Danno Projects
  • Home
  • About
  • Skills
  • Experiences
  • Education
  • More
    Recent Posts Accomplishments
  • Posts
  • Dark Theme
    Light Theme Dark Theme System Theme
  • Posts
  • Microsoft 365
    • Google Workspace to EXO
  • DevOps
    • Docker
      • Setting up Docker and Jenkins on a Raspberry Pi
    • Python
      • Replacing Excel with a SharePoint List for Inventory Management
  • Security
    • Hardening Linux Web Stacks
  • Networking
    • ASA Logs to CloudWatch
    • Cisco Firepower SAML/MFA
  • Power Platform
    • SMS Notification
    • Delegation
  • Projects
    • Sena 20S Evo Battery Replacement
  • PowerShell
    • M365 Offboarding Script
Hero Image
A Repeatable Microsoft 365 Offboarding Script with Graph PowerShell

Overview Offboarding is one of those tasks that’s simple on paper and easy to get subtly wrong in practice. Miss a step and you end up with a departed user who still has an active session token, a mailbox nobody can read, or a license you’re paying for months later. Between employees and a steady rotation of contractors, I was offboarding people often enough that a checklist in my head wasn’t good enough. This post walks through the script I use now. It takes a UPN and runs the whole sequence the same way every time.

  • PowerShell
  • Microsoft Graph
  • Microsoft Entra ID
  • PIM
  • Exchange Online
  • Automation
  • Offboarding
Thursday, July 9, 2026 Read
Navigation
  • About
  • Skills
  • Experiences
  • Education
  • Recent Posts
  • Accomplishments
Contact me:
  • dannoprojects 'at' gmail.com
  • dannoprojects
  • Dan Rowe

Toha Theme Logo Toha
© 2026 Copyright.
Powered by Hugo Logo