Get-UnifiedGroup : The term ‘Get-UnifiedGroup’ is not recognized as the name of a cmdlet, function, script file, or operable program.

Problem: Getting “Get-UnifiedGroup : The term ‘Get-UnifiedGroup’ is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.” error in PowerShell! Root Cause and Solution: You must…

Read more

Find All Office 365 Group Memberships of a User using PowerShell

Requirement: Get a list of all Microsoft 365 groups where a particular user is a member (or owner!). How to a Find a Particular User’s All Office 365 Group Memberships? If you need to find all the Office 365 group memberships that a user is a part of, PowerShell is your best…

Read more

How to Add Comments in PowerShell Scripts?

Adding comments in PowerShell scripts is a great way to document your code and make it more readable for others (and yourself) to understand what your script is doing. Comments can be used to explain the purpose of a script, and the different parameters available, or to provide additional information about a…

Read more

How to Create a Retention Policy to Preserve Deleted Items in SharePoint Online?

Requirement: Create a retention policy to preserve deleted items in SharePoint Online. How to create a Retention Policy for SharePoint Online? SharePoint Online retains deleted items for 93 days before they get deleted permanently. What if you want to preserve deleted items for more than 93 days? Say, for 10 years as…

Read more

How to Invite a Guest User to Azure AD for SharePoint Online?

Requirement: Invite a guest user to SharePoint Online Azure AD. How to invite a guest user to Azure Active Directory? Azure Active Directory (Azure AD) is a cloud-based identity and access management service that enables organizations to manage access to their resources. As an administrator, you can invite guest users to your…

Read more

PowerShell: Check If a File Exists

Requirement: Check if a file exists in PowerShell. How to check if a file exists in PowerShell? PowerShell is a fantastic tool that automates tasks and manages your Windows operating system. One of the most basic tasks in PowerShell file management is checking if a file exists. This step is crucial for…

Read more

SharePoint Online: Convert Classic Team Site to Communication Site

Requirement: Convert Classic Team Site to Communication Site in SharePoint Online. How to Convert a Classic Team Site to a Modern Communication Site? Communication sites are ideal for broadcasting news, announcements, reports, etc., to broader audiences, such as teams or the entire organization. The responsive, dynamic site design delivers great experiences for…

Read more

SharePoint Server: Download Documents from a CSV File using PowerShell

Requirement: Download files in the SharePoint document library from a CSV file to a local disk. PowerShell Script to Download Documents from SharePoint If you need to quickly and easily download your SharePoint documents from a CSV file, PowerShell is the tool for you. This quick guide will show you how to…

Read more

SharePoint Online: Monitor Site Collection Storage Usage with PowerShell

Requirement: Monitor SharePoint Online storage metrics and Send Emails on current usage. SharePoint Online: Storage Usage Report using PowerShell By default, SharePoint Online storage management is set to “Automatic,” and all storage allocations are automatically managed from the central pool of storage. However, In your environment, if the storage management option is…

Read more