Author: Tony Redmond

Latest Articles

Using the Teams Delete Chat API with PowerShell

A beta version of a Graph API to delete Teams chat threads allows administrators to remove unwanted chats. This article reviews how the API requests work to delete, list, and undo deleted chat threads using cmdlets from the Microsoft Graph PowerShell SDK. The first step is to find chats to remove, so we wrote a script to report all the chat threads for the signed-in user.

September 18, 2023

Microsoft Changed the Way the Search-UnifiedAuditLog Cmdlet Works Without Telling Anyone

Microsoft has changed the way that the Search-UnifiedAuditLog cmdlet works without saying anything to Microsoft 365 customers. The results is that some scripts don't work and others won't return the expected results. This article explains what's happened and offers a workaround. Microsoft's actions are unexplainable, but it's the norm in this area where audit log changes happen without communication all the time.

September 5, 2023

Bulk License Assignment with the Microsoft Graph PowerShell SDK

A reader asked how to use a CSV file for bulk license assignment with the Microsoft Graph PowerShell SDK. We didn't have one to hand, so we wrote a new script to illustrate the principles of how to process license assignments for a set of user accounts (which don't necessarily have to come from a CSV file). We even included some error handling!

September 4, 2023

Using the Microsoft Graph PowerShell SDK to Generate a Mailbox Traffic Report

Microsoft 365 makes it easy for administrators to get mail activity usage data for users. However, if you want to know which domains are sending most mail, you need to do some work. In this article, we cover how to use cmdlets from the Microsoft Graph PowerShell SDK to create reports about user mail activity over time and the traffic sent by different domains.

August 7, 2023

Become the TEC 2023 PowerShell Script-Off Champion

The TEC 2023 PowerShell Challenge Champion will be known after three rounds of frenetic script coding at The Experts Conference in Atlanta on September 19, 2023. Competitors will need a working knowledge of Microsoft 365 PowerShell, including Exchange Online, Teams, and Azure AD. Being able to think on your feet and come up with working solutions to problems is possibly a more important attribute than coding genius.

August 1, 2023