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 their template. Just Login to SharePoint Admin Center >> Expand Sites >> Active Sites >> Mouse over to the template column and filter…

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 to manage the SharePoint Online environment and 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 your…

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, I 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…

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 specific 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 a 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? By default, the regional settings are selected from Site creation Settings in the SharePoint Admin Center at the time of site creation. However, you may need to change these settings depending on your location or…

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 a local drive, export metadata of each document to a CSV file, and then import them to SharePoint Online. Before we…

Read more

Get All SharePoint Online Administrators in Office 365 using PowerShell

Requirement: Get a list of All users with SharePoint Online Administrator Roles. How to Get All SharePoint Online Administrators in Office 365? As a SharePoint Online administrator, you may need to get a list of all other SharePoint Online administrators in your Office 365 environment. There are a few ways you can…

Read more

SharePoint Online: How to Convert Classic Sites to Modern Sites?

Requirement: Convert SharePoint Online site from classic to modern How to change the classic site to modern in SharePoint Online? Are you looking for modernizing your classic SharePoint Online site? SharePoint Modern experience has many advantages compared with classic, like better user experience, faster page loading, responsive design, etc. There are several…

Read more

How to Create a Log File in PowerShell Script?

Requirement: Generate a log file and add messages to it to track the execution of a PowerShell script How to Create a Log File in PowerShell? We may need to log messages to help us troubleshoot where and what went wrong during the execution of the script. Sometimes, for tracking purposes. The…

Read more