How to Reindex a SharePoint Site using PowerShell?

Requirement: Reindex SharePoint Site collection using PowerShell. Reindex feature introduced in SharePoint 2013 onwards allows you to force the search service to re-index the whole site, list, or library (doesn’t matter items are changed or not). By default, the full crawl picks up all items, however when you reindex, SharePoint marks the…

Read more

SharePoint Online: PowerShell to Get All Groups

Requirement: SharePoint Online PowerShell to List All Groups in a Site Collection Get SharePoint Online Groups using PowerShell: Get-SPOSiteGroup The Get-SPOSiteGroup PowerShell cmdlet displays a list of all existing SharePoint groups for a specific site collection. Use SharePoint Online Management Shell console to get user groups in SharePoint Online. Get-SPOSiteGroup -Site <Site-Collection-URL>…

Read more

SharePoint Online: Create Subsite with Unique Permissions using PowerShell

Requirement: Create a Subsite with Unique Permissions in SharePoint Online using PowerShell Create Subsite with Unique permissions in SharePoint Online using PowerShell This script creates a subsite with unique permissions. But wait, we are not yet done! As we specified Unique permissions, we need to create default permission groups: Owners, Members and…

Read more

SharePoint Online: Get All Lists using PowerShell

Requirement: SharePoint Online Get All Lists inventory using PowerShell Get All Lists in SharePoint Online using PowerShell CSOM: Here is the PowerShell to get all lists in a SharePoint Online Site. This PowerShell gets either a single list or all lists from SharePoint Online site based on the given parameters. How to…

Read more

SharePoint Online: Get File Properties using PowerShell

Requirement:  Get File Properties in SharePoint Online using PowerShell SharePoint Online PowerShell to Get File Properties PowerShell to Get Document Metadata in SharePoint Online If you need to retrieve custom column values of a file: PnP PowerShell to Get File Metadata column values:

Read more

SharePoint Online: Find Who Created a List or Library using PowerShell

Requirement: Find Who has created a list or library in SharePoint Online. Get Who Created a Library in SharePoint Online: If you want to find out who has created a SharePoint Online list or library: Sorry! There is no way from the SharePoint web user interface! You can’t get the “Created By”…

Read more