SharePoint Online: Fix “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: When working with SharePoint Online using PowerShell, you may encounter the error “The remote server returned an error (401) Unauthorized.” This error can occur when the script is not…

Read more

SharePoint Online: Move Subsite to Another Site using PowerShell

Requirement: Move the 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 walk 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? In order to apply a theme to a SharePoint Online site using a PnP Provisioning Template and PowerShell, you will need to complete the following steps: Step…

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: PowerShell to Break Folder Permission Inheritance

Requirement: Break Permission Inheritance of a Folder in SharePoint Online using PowerShell. How to break the inheritance of a folder in SharePoint Online? By default, folders in SharePoint Online inherit permission from their parent objects, such as document library or list. In some cases, you might want to give users different permissions…

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 similar to the existing list structure is a common requirement in SharePoint. Creating a list from an existing list in Sharepoint Online can be a great way to quickly…

Read more

SharePoint Online: Remove a Custom Theme using PowerShell

Requirement: Remove a custom theme in SharePoint Online. If you’ve ever customized your SharePoint Online site by adding a custom theme, you may have later decided that you don’t like the look and feel of the theme. Or maybe someone else in your organization has created a custom theme you want to…

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 the 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…

Read more

How to Add Owner to Office 365 Group using PowerShell?

Requirement: Add Owner to Office 365 group using PowerShell. How to Set Group Owners in Office 365? Office 365 groups are a powerful tool for collaboration and information sharing, and If you are managing Office 365 Groups, you may need to add an owner to the group. In this blog post, we…

Read more

Find All Office 365 Group Owners using PowerShell

Requirement: Get Office 365 Group Owners. How to Get Office 365 Group Owners? Office 365 groups are a powerful tool for collaboration and information sharing within an organization. As an administrator, you may need to view the owner of a group to manage its access and permissions. If you need to get…

Read more