Fix “Connect-AzureAD : The term ‘Connect-AzureAD’ is not recognized as the name of a cmdlet, function, script file, or operable program.” Error

Problem: When trying to connect to Azure AD from PowerShell, using: “Connect-AzureAD” cmdlet, received an error: “Connect-AzureAD: The term ‘Connect-AzureAD’ is not recognized as the name of a cmdlet, function, script file, or operable program.” Solution for Connect-AzureAD not recognized Issue: The error “Connect-AzureAD : The term ‘Connect-AzureAD’ is not recognized as…

Read more

SharePoint Online: Get Files and Sub-Folders Count on Each Folder in a Document Library using PowerShell

Requirement:  Get the count of files and sub-folders at each folder in a SharePoint Online document library. How to Get the Number of Files and Sub-Folders at Each Folder of a Document Library? When a document library has multiple folders, sub-folder, and files, you can get the number of files and sub-folders…

Read more

SharePoint Online: Change from Classic Experience to Modern (and vice versa) using PowerShell

Requirement: Change SharePoint Online site from Classic Experience to Modern. How to Activate the Modern Experience from Classic? The modern experience in SharePoint Online lists and libraries is faster, mobile-friendly, and easier to use. It brings new functionalities, user interfaces, and components. However, some features can only be used in the classic experience….

Read more

SharePoint Online: Error Handling with Try Catch in PowerShell

One of the best practices while writing PowerShell scripting is handling potential errors to ensure the smooth execution of the script when something goes wrong. Who can guarantee a script can run correctly in different environments every time? Error handling in PowerShell is made easy with try-catch blocks similar to .NET framework….

Read more

SharePoint Online: How to Disable “Delete this list”?

Requirement: Disable the “Delete” option in a SharePoint Online List or Document Library. How to Disable the Delete option for a List or Library in SharePoint Online? We have a requirement to disable any accidental deletes on specific SharePoint Online lists and document libraries that are provisioned as part of a custom…

Read more

SharePoint Online: Get Attachments Report in a List using PowerShell

Requirement: Generate a Report to get an Inventory of all Attachments in a SharePoint Online List. PowerShell to Get All Attachments in a SharePoint Online List This blog post will show you how to get all of the attachments from a SharePoint Online list. This is a handy trick if you need…

Read more

SharePoint Online: How to Remove the Title Column from List?

Requirement: Remove the Title column from SharePoint Online List. SharePoint Online: How to Remove Title Field from List? When you create a new list, it comes with a “Title” column by default. You can rename the title column to something relevant to your list. For example, I’ve created a “Metrics” list and…

Read more

SharePoint Online: How to Set Item-Level Permissions in a List?

Requirement: Set Item Level Permission in SharePoint Online List. What is Item-level Permission in the SharePoint Online List? When you want to restrict all items in a list either with read or edit access to only those who created that item, You can utilize Item-level permission settings in SharePoint Online! E.g., You…

Read more

SharePoint Online: Create Multiple Subsites from a CSV File using PowerShell

Requirement: Create Multiple subsites in SharePoint Online using PowerShell. SharePoint Online: How to Create Multiple Subsites using PowerShell? Creating multiple subsites in SharePoint Online can be a tedious process and can be a lot of work if you have to do it one by one. Wouldn’t it be great if there was…

Read more