How to Copy a Folder in SharePoint Online using PowerShell?

Requirement: Copy Folder in SharePoint Online using PowerShell How to a Copy Folder in SharePoint Online? Copying a folder in SharePoint Online modern experience is quite simple. Navigate to your SharePoint Online Document Library >> Select the Folder to Copy From the Toolbar, click on the “Copy to” button Select the destination…

Read more

SharePoint Online: How to Reindex a List or Document Library using PowerShell?

Requirement: SharePoint Online Reindex list or document library using PowerShell PowerShell to Reindex List in SharePoint Online Although Items are fully indexed by Full crawl in SharePoint, Reindex feature in SharePoint helps to recrawl and perform full indexing during the next incremental or continuous crawl. PnP PowerShell to Reindex a List in…

Read more

SharePoint Online: PowerShell to List Deleted Sites

Requirement: Find All Deleted Site Collections in SharePoint Online How to Get Deleted Sites in SharePoint Online? Deleted site collections are sent to recycle bin in SharePoint Online and stays there for 92 days until they purged permanently. To check if a site collection is deleted and exists in recycle bin, Login…

Read more

SharePoint Online: PowerShell to Get List Item Field Value

Requirement: PowerShell to Get List Item Field Value in SharePoint Online SharePoint Online PowerShell to Get List Item Field Value The above script returns data as per the field type. E.g. as the “Manager” field is “Person or Lookup”, this PowerShell script returns Microsoft.SharePoint.Client.FieldUserValue data type. Let’s get only the text value…

Read more

SharePoint Online: Bulk Delete All List Items using PowerShell

Requirement: Bulk Delete SharePoint Online List Items using PowerShell Delete All List Items in SharePoint Online using PowerShell: We have a list in SharePoint Online – Office 365 site with a bunch of items. Need them to be deleted in bulk rather than deleting one by one from SharePoint web UI. Here…

Read more

SharePoint Online: Create Publishing Page using PowerShell

Requirement: Create a Publishing Page in SharePoint Online using PowerShell SharePoint Online: Create Publishing Page using PowerShell CSOM Make sure you have publishing feature enabled, before running this script: PnP PowerShell to Create a Publishing Page in SharePoint Online:

Read more

SharePoint Online: Get Site Collection, Web ID using PowerShell

Requirement: Get the ID of a SharePoint Online site collection or subsite using PowerShell How to get SharePoint Online Site ID? We may need the IDs of SharePoint Online site collection or subsite at times and these IDs are easy to find. Here is how to find the ID of a SharePoint…

Read more

SharePoint Online: PowerShell to Update List View

Requirement: Update List View in SharePoint Online using PowerShell SharePoint Online: PowerShell to Update List View Let’s apply a filter to “Active Projects” view to get all projects with “Project Status” field value as “Active” Update View in SharePoint Online using PnP PowerShell PnP PowerShell to Set View Type to “Tiles” in…

Read more

SharePoint Online: How to Make List Field Read Only using PowerShell?

Requirement: Make a Field Read Only in SharePoint Online List How to Set a List Field to Read-Only in SharePoint Online using PowerShell? This sets the field to read only even in Quick Edit mode! PnP PowerShell to Set a List Field to Read Only

Read more