Automating Microsoft 365 with PowerShell
Automating Microsoft 365 with PowerShell is the definitive guide to using PowerShell to automate administrative operations across the Microsoft 365 ecosystem. Originally a chapter in the Office 365 for IT Pros eBook, the content has been dramatically expanded and revised into four chapters:
- PowerShell for Microsoft 365
- Working with the PowerShell Modules used with Microsoft 365 workloads (Exchange, SharePoint, Teams, etc.),
- Using PowerShell with the Microsoft Graph APIs.
- Using the Microsoft Graph PowerShell SDK.
Unlike the simple examples of how to use cmdlets often found in Microsoft documentation, Automating Microsoft 365 with PowerShell includes hundreds of practical and useful examples to illustrate how to get things done. You'll learn how to build solutions like the Microsoft 365 Tenant Licensing report and the Microsoft 365 User Passwords and MFA report.
To add value to the examples presented in the chapters, pointers to fully-developed PowerShell scripts in the Office 365 for IT Pros GitHub repository are included where appropriate.
The text explains how to manage Microsoft 365 objects such as Entra ID user accounts and groups, Exchange Online mailboxes, SharePoint Online sites, document libraries, and files, and Teams chat, channels, messages, and settings.
Automating Microsoft 365 with PowerShell does not attempt to teach the basics of PowerShell and assumes some proficiency with PowerShell on the part of the reader. If you know how to use PowerShell to manage Microsoft 365, you’ll delight in the clear and unambiguous explanations of how to get work done.
If you subscribe to the Office 365 for IT Pros eBook (2025 edition and later), you don’t need to buy Automating Microsoft 365 with PowerShell because it is included in your subscription. Only buy here if you don’t want to buy the full Office 365 for IT Pros eBook.
Like the Office 365 for IT Pros eBook, Automating Microsoft 365 with PowerShell is updated monthly. Those who buy the book receive a subscription covering the lifetime of the edition, which usually lasts a year from the date of publication.
The current version is 6.01 published on 25 November 2024.
Copies of the book in PDF and EPUB format