Loading...

How I Write PowerShell Scripts for Microsoft 365

How I Write PowerShell Scripts for Microsoft 365
The question of how best to write PowerShell for Microsoft 365 was asked during a TEC 2024 PowerShell workshop. There are many variables, and one has the right answer. To start the ball rolling, this article describes how I write PowerShell for Microsoft 365 using a variety of modules such as Exchange, SharePoint, Teams, and the Microsoft Graph PowerShell SDK.

Published on:

Learn more
Office 365 for IT Pros
Office 365 for IT Pros

Office 365 for IT Pros is the world's best book about Office 365 architecture, management, and deployment. Written by a team of highly experienced Microsoft MVPs, Office 365 for IT Pros is refreshed monthly.

Share post:

Related posts

Updates available for Microsoft 365 Apps for Current Channel

We’ve released updates to the following update channel for Microsoft 365 Apps: Current Channel When this will happen: We’ll be gra...

8 hours ago

Microsoft Teams: File attachment control now enabled by default in external 1:1 and group chats

Microsoft Teams now enables automatic file and Loop component sharing by default in external 1:1, group, and meeting chats, improving collabor...

8 hours ago

Introducing the employee self-service agent in Microsoft 365 Copilot Studio

Microsoft 365 introduces the Employee Self-Service Agent in Copilot Studio to streamline HR and IT support. Available from November 2025, it o...

8 hours ago

Microsoft 365 Copilot: Introducing Researcher with Computer Use

Microsoft 365 Copilot introduces Researcher with Computer Use, enabling secure interaction with public and gated web content via a virtual com...

9 hours ago

Microsoft 365 Copilot: AI and Microsoft Graph-powered overview in Copilot Search

Microsoft 365 Copilot Search will add an AI and Microsoft Graph-powered Overview feature by mid-November 2025, providing concise summaries of ...

9 hours ago

New: Follow Threads from Discover feed in Microsoft Teams

Microsoft Teams is introducing a “Follow thread” feature allowing users to follow posts from the Discover feed or Channels. Follow...

9 hours ago

Dynamics 365 Customer Insights – Journeys – Host large-scale online events with Teams Town Hall

We are announcing the ability to integrate Microsoft Teams Town Hall into Dynamics 365 Customer Insights – Journeys. This feature will r...

9 hours ago

Microsoft Copilot (Microsoft 365): Use voice for Q&A during Read Aloud in Word

Interact in real time with read aloud in Word with Copilot. While your document is being read aloud, you can ask questions with your voice—suc...

9 hours ago

SharePoint: M365 Agent Access Insights for SharePoint and OneDrive sites

Rich insights on agents accessing content in SharePoint and OneDrive sites as part of SharePoint Advanced Management controls. Product SharePo...

9 hours ago

Microsoft Copilot (Microsoft 365): Real-time voice interactions in a podcast in Word

Interact in real time with podcasts created by Copilot in Word. Today, audio summaries help you absorb content on the go, but they’re one-way—...

9 hours ago
Stay up to date with latest Microsoft Dynamics 365 and Power Platform news!
* Yes, I agree to the privacy policy