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

Get All SharePoint Online Administrators in Office 365 using PowerShell

Requirement: Get a list of All users with SharePoint Online Administrator Role. How to Get All SharePoint Online Administrators in Office 365? To view all existing SharePoint admins, do the following: Login to Microsoft Admin Center https://admin.microsoft.com Click on “Show All” in the left navigation >> Click on the “Roles” link Under…

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? SharePoint Modern experience has many advantages compared with classic, like better user experience, faster page loading, responsive design, etc. There are several methods available to switch from classic to modern experience in…

Read more

SharePoint Online: “The remote server returned an error (401) Unauthorized” Error in PowerShell

Problem: Exception calling “ExecuteQuery” with “0” argument(s): “The remote server returned an error (401) Unauthorized.” Error in SharePoint Online PowerShell script. Troubleshooting Checklist: Here are the various root causes and solutions for the remote server returned an error 401 unauthorized in SharePoint Online: 1. Is your URL Correct? You’ll get the same…

Read more

SharePoint Online: Move Subsite to Another Site using PowerShell

Requirement: Move Subsite to a new site in SharePoint Online How to move a subsite in SharePoint Online? As a SharePoint Online administrator, you may need to move a subsite from one site to another. In this blog post, we’ll be walking through the process of moving a subsite from one SharePoint…

Read more

SharePoint Online: Apply Theme using PnP Provisioning Template PowerShell

Requirement: Set Theme in SharePoint Online Site using PnP PowerShell Provisioning Template. How to Change the Site Theme in SharePoint Online using PnP Provisioning Template? Go to the PnP Provisioning Schema repository in GitHub and build your provisioning template. https://github.com/SharePoint/PnP-Provisioning-Schema, Here is mine: Provisioning Template Schema XML for Theme: Make necessary changes…

Read more

Set Footer in SharePoint Online Communication Site using PowerShell

Requirement: Set Footer in SharePoint Online Communication Site using PnP PowerShell How to Provision Footer links in SharePoint Online using PnP Provisioning Template? Go to the PnP Provisioning Schema repository on GitHub and build your provisioning template. https://github.com/SharePoint/PnP-Provisioning-Schema, Here is mine: Provisioning Template XML for Footer Links: Make necessary changes and save…

Read more

SharePoint Online: How to Create a New List from Existing List?

Requirement: Create a list from an existing list in SharePoint Online. SharePoint Online: Create a List from an Existing List Creating a list, as same as the existing list structure is a common requirement in SharePoint. We used the “Site list as Template” approach in previous versions of SharePoint and in the…

Read more

SharePoint Online: Remove a Custom Theme using PowerShell

Requirement: Remove a custom theme in SharePoint Online. Remove a Theme in SharePoint Online Using PowerShell: We can remove a custom theme from SharePoint Online tenant using Remove-SPOTheme cmdlet SharePoint Online: PowerShell to Delete a Theme We can also use PnP PowerShell to remove a theme in SharePoint Online. If you remove…

Read more

SharePoint Online: CAML Query with IsNull and IsNotNull Examples in PowerShell

Requirement: Get all items from a list where a particular filed value is Null. SharePoint Online: CAML Query IsNull Example Here is the example of how IsNull operator can be used in CAML: SharePoint Online: CAML query with IsNotNull Operator in PowerShell Similarly, You can use “<IsNotNull>” Operator to get list items…

Read more