Listen

Description

(00:00:00) The Future of PowerShell Scripting

(00:00:24) The End of Modules

(00:00:41) REST API: The Better Alternative

(00:03:39) Token Acquisition Methods

(00:04:48) The Core REST Pattern

(00:05:34) Common Mistakes to Avoid

(00:06:23) Quick Wins with Graph

(00:07:20) Enterprise Demo 1: Intune Device Cleanup

(00:10:22) Enterprise Demo 2: Identity Onboarding

(00:13:16) Enterprise Demo 3: Compliance Drift Detection



In this episode of M365.fm, Mirko Peters shows how to drop legacy PowerShell modules like MSOnline and AzureAD and move to a clean, REST‑first pattern with Microsoft Graph that runs anywhere — Windows, Linux, containers, and CI/CD.

WHAT YOU WILL LEARN

THE CORE INSIGHT

Modules lag, Graph is always first. If a feature exists in Microsoft 365, it lands in Microsoft Graph before it ever shows up in a PowerShell module — if it shows up at all.
By going REST‑first, you stop fighting module versions, dependencies, and platform differences and instead build small, predictable scripts that talk to Graph directly.
Tokens replace credentials, short‑lived access replaces shared service accounts, and your scripts suddenly become audit‑friendly and automation‑ready.
This episode argues that the future of serious automation in Microsoft 365 is PowerShell + REST + Graph — not another generation of fragile modules.

WHY POWERSHELL WITHOUT MODULES WORKSKEY TAKEAWAYSWHO THIS EPISODE IS FOR
This episode is ideal for Microsoft 365 admins, automation engineers, DevOps teams, and cloud architects who rely on PowerShell for identity, Intune, and tenant operations.
If your scripts still import MSOnline or AzureAD, or if CI/CD runners keep breaking your module‑based automation, this conversation will show you how to modernize with a Graph‑first approach.

TOPICS COVEREDABOUT THE HOST

Mirko Peters is a Microsoft 365 consultant and digital workplace architect focused on building cloud‑native, automation‑ready environments on the Microsoft stack.
Through M365.fm, Mirko shares practical patterns, governance approaches, and real‑world scripts that help IT teams move from legacy modules to modern, Graph‑first automation.
























Become a supporter of this podcast: https://www.spreaker.com/podcast/m365-fm-modern-work-security-and-productivity-with-microsoft-365--6704921/support.