Search for: Practical PowerShell

865 Results

Practical Graph: Check Licenses Before Assignment to Entra ID Accounts

License assignment to Entra ID accounts with PowerShell is easy if licenses are available and the account doesn't already have the license. In this article, we explore how to check license availability and make sure that we don't try to assign a license that's already present.

Continue Reading Practical Graph: Check Licenses Before Assignment to Entra ID Accounts

Practical Graph: Report Microsoft 365 Licenses Assigned Through Group-Based Licensing

Group-based licensing is a simple way to automate the distribution of licenses to members of security groups. In this article, we review how the mechanism works and show how to automate operations with PowerShell. Finally, we update the tenant licensing report to include group-based licensing and to highlight duplicate license assignments.

Continue Reading Practical Graph: Report Microsoft 365 Licenses Assigned Through Group-Based Licensing

Practical Graph: Use an Azure Automation Runbook to Remove Teams Chat Threads

A previous article explains how to delete Teams chats using an interactive Microsoft Graph PowerShell SDK session. This article builds on that information and explains how to use an Azure Automation runbook to find and remove specified chat threads by scanning all user accounts. The results of the scan and any removed chat threads are emailed to a nominated address at the end of processing.

Continue Reading Practical Graph: Use an Azure Automation Runbook to Remove Teams Chat Threads

Practical Graph: Remove Teams Chat Threads with the Teams Delete Chat API

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.

Continue Reading Practical Graph: Remove Teams Chat Threads with the Teams Delete Chat API

Practical Graph: Bulk License Assignment

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!

Continue Reading Practical Graph: Bulk License Assignment