← Consultant · Master
Lesson 2 of 414 min

Automation with PowerShell and APIs

Modules, REST (Representational State Transfer) APIs, MS Graph. Stop doing the same task by hand twice.

Lines of code on a display, developer at work
Photo by luis gomes on Pexels

Modules: ActiveDirectory, ExchangeOnline, Microsoft.Graph. Install once, reuse forever.

Microsoft Graph API (Application Programming Interface) exposes M365 (Microsoft 365) over REST. Use Invoke-RestMethod or the Graph SDK.

Rule of three: if you've done it manually three times, automate it. Commit scripts to a shared repo.

Key takeaways

Next: Zero Trust networking →