How Can I Automate a Tenant Cleanup for Microsoft 365?

0
5
Asked By User1234XYZ On

Hey everyone! I'm trying to automate the cleanup of our Microsoft 365 tenant and I've hit a bit of a wall. I'm familiar with some tools but need guidance on where to start. I've seen a lot about using Microsoft Graph, but I'm not sure how to get it working—it keeps failing on me. I'm specifically looking to implement some sort of system for cleaning up things like teams, mailboxes, and groups that have accumulated over the years without strict management. Ideally, I want to set parameters for automatic cleanup of obsolete resources, along with notification systems for stakeholders involved. I have access to Azure and all features of Microsoft 365, plus the Microsoft 365 backup tool. Any ideas on scripts, tools, or approaches to get me going would be greatly appreciated!

2 Answers

Answered By ScriptMaster2023 On

If you're looking for some starter scripts, I recently came across a helpful guide on the top PowerShell scripts for Microsoft 365. It covers various automation tasks using MS Graph and could give you a good foundation. You can find it [here](https://o365reports.com/2024/03/27/ms-graph-powershell-scripts-microsoft-365-it-pros/)!

CuriousCoder -

Thanks for sharing that link! I'll definitely check it out—it sounds like just what I need.

Answered By TechSavvy99 On

Before diving into automation, it's crucial to clarify what exactly you're looking to clean up in your tenant. Microsoft 365 is quite extensive, so consider pinpointing specific items like distribution lists or security groups first. Gathering usage reports on those resources will help you decide what needs to go and what can stay. Look into identifying needs before jumping into the 'how'—understanding your 'why' is key for an effective cleanup strategy!

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.