PowerShell

Read articles and blog posts about PowerShell on Practical365.com.

Latest Articles

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

Reporting Microsoft Entra ID Administrative Units

Microsoft Entra administrative units are gaining in popularity. Restricted administrative units are now available and many Purview solutions support administrative units. In this article, we explain how to use Microsoft Graph PowerShell SDK cmdlets to create a report about administrative units, role assignments for their management, and their membership.

July 17, 2023

Automating Microsoft Planner Plan Creation with PowerShell

Creating a Planner plan from a template allows a team working on a project to start working with the plan without creating a new plan from scratch. This is particularly useful when the same basic plan is used on multiple occasions. In this article, Sean Mcavinue shows you how to do this with some PowerShell Automation!

June 20, 2023

Upgrading the Planner Report Script to Add An Incomplete Task Analysis

In the first article about using the Planner Graph API to report details of plans in a Microsoft 365 tenant, we explained the basics of how to extract data about plans, tasks, and buckets to create a report using a PowerShell script. Now we take the lessons learned a step forward to illustrate the principle that with access to data, the possibility for creative use of that data is boundless and upgrade the script to include a listing of incomplete tasks and per-user analysis of incomplete tasks for each plan.

June 12, 2023

Keeping Teams Tidy Through Automation

With a relatively small amount of effort, the provisioning of Teams in an organization can be automated to cater to the requirements of the business, as well as IT. In this article, Sean McAvinue goes over keep your Teams tidy through some useful tips and PowerShell code.

June 6, 2023