Connect-PnPOnline : The term ‘Connect-PnPOnline’ 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.

Problem: When trying to run a PowerShell script for SharePoint Online, got this error message: “Connect-PnPOnline : The term ‘Connect-PnPOnline’ 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…

Read more

SharePoint Online: Check If a Folder has Unique Permissions

Requirement: Check If a Folder has Unique Permissions in SharePoint Online using PowerShell Check if Folder has Broken Permission Inheritance using PowerShell CSOM PowerShell to Check If Folder has Unique Permissions: Get Permissions of All Folders in SharePoint Online Library:

Read more

SharePoint Online: How to Get All Modern Group Sites using PowerShell?

Requirement: Get Modern Group Team sites in SharePoint Online. How to Get All Modern Group Sites in SharePoint Online? In the modern admin center, you can filter sites by its template. Just mouse over to the template column and filter template based on your requirement. We can get the list of modern…

Read more

SharePoint Online: Get Admin Center Site URL

Requirement: Find SharePoint Online Admin Center How to Access the SharePoint Online Admin Center? We need the SharePoint admin site URL for managing the SharePoint Online environment and to work with SharePoint Online PowerShell modules. How to find SharePoint Online tenant admin URL? Typically, the admin center is located at: https://tenant-admin.sharepoint.com/ If…

Read more

SharePoint Online: URL Length Limitation of 218 Characters in Excel Files

Problem: When trying to open a Microsoft Excel file stored in a SharePoint Online document library, got this error message: We couldn’t open that file. rename the file to use a shorter name or copy it to a different folder with a shorter path. We faced similar issues like: “Sorry, we couldn’t…

Read more

SharePoint Online: Change List or Document Library Icon using PowerShell

Problem: Icon for document library is broken in SharePoint Online after migration. How to Fix Broken Icon for SharePoint Online List or Document Library? After migrating from SharePoint On-premises to SharePoint Online, we found certain document library icons are broken – These document libraries were provisioned through a custom application and have…

Read more

How to Restore OneDrive For Business Site from Recycle Bin?

Requirement: Restore a Deleted OneDrive Site How to restore an OneDrive for Business Site using PowerShell? When you remove a user from Office 365, his OneDrive is retained for 30 days, and then it’s deleted. When an OneDrive site for an Office 365 user is deleted, it is moved to the tenant…

Read more

SharePoint Online: Change Regional Settings using PowerShell

Requirement: Change regional settings in SharePoint Online using PowerShell How to Change Regional Settings in SharePoint Online? Changing regional settings of a SharePoint Online site is straightforward. Navigate to your SharePoint Online site >> Click on Settings >> Site Settings Under the “Site settings” page, click on “Regional Settings” link under “Site…

Read more

Migrate SharePoint 2010 Document Libraries to SharePoint Online using PowerShell

Requirement: Migrate Document Libraries from SharePoint 2010 to SharePoint Online. How to Migrate SharePoint 2010 Document Libraries to SharePoint Online? The idea is: Export all document libraries from SharePoint On-premises to local drive, export metadata of each document to a CSV file, and then import them to SharePoint Online. Before we begin,…

Read more