SharePoint Online: PowerShell to Remove User from All Sites

Requirement: Remove User from All Sites in SharePoint Online PowerShell to Remove a User from All SharePoint Online Site Collections: The following PowerShell script will remove the provided login account from all site collections of your SharePoint Online. Please note, you must be a site collection administrator for all site collections before…

Read more

How to Create App Catalog Site in SharePoint Online?

What is App Catalog in SharePoint Online? App Catalog in SharePoint is a central location where we can manage custom-developed apps or 3rd party apps and make them available for users to download across all site collections. These apps are listed under the “From Your Organization” link when you try to add…

Read more

Delete Office 365 Group Site Collection using PowerShell

Requirement: Delete office 365 group-connected site collection. How to Delete Office 365 Group Site? When you delete an Office 365 group, its associated team site gets deleted automatically (However, It takes a while up to 30 min to delete the connected SharePoint Online site and clear it from the “Active Sites” list…

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: 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: Get All Documents Inventory in a Site using PowerShell

Requirement: List All Documents in SharePoint Online Site Collection using PowerShell SharePoint Online PowerShell to Get All Documents Here is the PowerShell to list all documents from document libraries in SharePoint Online site collection and export to CSV. Change the site collection URL and report output path in the script and run:…

Read more

How to Find Who Created a Site in SharePoint?

Ever wanted to find out who has created a SharePoint site? Sorry! There is no way from SharePoint user interface to get who created a site! You can’t get “Created By” or “Created On” values anywhere. But PowerShell is our rescuer! Let’s see who has created a SharePoint site using PowerShell: Find…

Read more

SharePoint Online: How to Trigger Full Reindex using PowerShell?

Requirement: Reindex SharePoint Online site using PowerShell How to Reindex the SharePoint site? After mapping a crawled property to new managed property in SharePoint Online, We had to Reindex the SharePoint Online site. Typically, whenever you do changes to the search schema, You should Reindex the site. Unlike SharePoint On-premises, where we…

Read more

SharePoint Online: Get Site Owner using PowerShell

Requirement: Get SharePoint Online Site Owner using PowerShell How to Check Site Owner in SharePoint Online? You can find site owner SharePoint Online from SharePoint Online Admin Center: Sign in to SharePoint Online Admin Center (https://YourDomain-admin.sharepoint.com/_layouts/15/online/SiteCollections.aspx) Select the site collection you wish to get site owner from the site collections list >>…

Read more

SharePoint Online: How to Change Site Owner using PowerShell?

Requirement: Change Site Owner in SharePoint Online using PowerShell How to Change Site Owner in SharePoint Online? Site Owners of a SharePoint Online site collections can be changed only through SharePoint Online Admin Center or PowerShell. To change site owner in SharePoint Online follow these steps: Important: You must be either Global…

Read more