PowerShell

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

Latest Articles

Practical Graph: Apply Retention Labels to Unlabeled SharePoint Files

A previous article described a script to find SharePoint Online files that didn't have retention labels. This article picks up the thread and shows how to use the data generated by the previous script to apply retention labels to the unlabeled files using cmdlets from the Microsoft Graph PowerShell SDK. Some issues are met along the way, but the script works and does the job, which is all that counts at the end of the day.

January 27, 2025

Practical Entra ID: Find Unused Guest Accounts with PowerShell

Given the widespread use of guest accounts within Microsoft 365 to allow external sharing of resources, it’s almost inevitable that some unused guest accounts exist in any Microsoft 365 tenant. Identifying unused guest accounts is a good management practice. If the accounts serve no purpose, why keep them? This article explores how to find unused guest accounts. What you do with them later is up to you.

December 16, 2024

Practical PnP: Managing Site Permissions

Permissions are central to SharePoint Online and it’s important to be able to manage site permissions effectively. In this episode of Practical PnP, we deep dive into site permissions, providing practical examples and use cases that you can apply to your environment.

December 2, 2024

Practical Compliance: Using Purge Actions to Remove Mailbox Items

Compliance search purge actions are Microsoft's search and purge tool. Today, a purge action is limited to removing 10 items per mailbox. Microsoft is increasing the limit to 100 as part of its eDiscovery modernization project. This article reviews the state of the art for using PowerShell to purge mailbox items and contemplates how purges might work after modernization finishes.

October 21, 2024