How to Display List of All Subsites in Modern SharePoint Online Site?

Requirement: Display list of subsites in SharePoint Online. How to View Subsites in SharePoint Online Site Collection? In classic experience, We use the “Content Search” web part with query “path:https://yoursitecollURL contentclass:STS_Web” to show all subsites in a site collection. In modern experience, we can use the “Highlighted content” web part to achieve…

Read more

SharePoint Online: Get Subsite Permission Report using PowerShell

Requirement: PowerShell script to get subsite permissions in SharePoint Online How to Get Subsite Permissions in SharePoint Online? To get permissions of a SharePoint Online subsite, Click on Setting gear >> Click on the “Site Permissions” link Click on “Advanced Permission Settings” in the site permissions page This gives you all users…

Read more

SharePoint Online: How to Disable Subsite Creation?

Requirement: Disable subsite creation in SharePoint Online. How to disable subsites in SharePoint Online? The traditional information architecture in SharePoint site collections and subsites is site collections have a top-level site and may have a number of sub-sites underneath. However, the recent recommendation from Microsoft is to avoid subsites and create site…

Read more

How to Create a Redirect in SharePoint Online?

Requirement: Create a redirect in SharePoint Online. How to Redirect SharePoint Online page to a different URL? In classic SharePoint sites, we’ve script editor web part and redirect can be achieved with JavaScript as in my other article How to Redirect using JavaScript in SharePoint?. Now, We have a modern site collection…

Read more

SharePoint Online: Activate a Feature on All Sites using PowerShell

Requirement: Enable a SharePoint Online feature for all sites using PowerShell. PowerShell to Activate a Site Collection Feature for All Sites We have a requirement to enable a SharePoint Online “Open Documents in Client Applications by Default” feature for all site collections in the tenant. Here is the PowerShell to enable a…

Read more

SharePoint Online: Disable a Feature for All Sites using PowerShell

Requirement: Disable a feature for all SharePoint Online sites using PowerShell. PowerShell to Deactivate a Site Feature on All Collections in the Tenant We have a requirement to disable the SharePoint Online “Open Documents in Client Applications by Default” feature for all sites in the tenant. Here is the PowerShell to disable…

Read more

SharePoint Online: Find All Unused Sites based on Last Modified Date

Requirement: Get All Unused SharePoint Online Sites How to Find the Last Modified Date of SharePoint Online Site Collections? The modern SharePoint Online Admin center gives a neat view of all sites in the tenant along with the “Last Activity (UTC)” column that gives a date value when List Items or Files…

Read more

How to Make a Subsite Read-Only using PowerShell?

Requirement: Make a SharePoint Subsite read-only. This method replaces all other permissions applied on the subsite with “Read” and can’t be reverted! Make sure you are proceeding only in scenarios where you don’t need to revert the read-only (E.g. Post migration)! You can take backup of the existing permissions though. How to…

Read more

How to Copy a Site in SharePoint Online using PowerShell?

Requirement: Copy a sub-site in SharePoint Online using PnP Provisioning Template. Site templates are a great way to make a “template” and create a copy of a site including all its structure and optionally content. However, Microsoft has removed the “Save as Template” feature in modern site templates and group associated team…

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? Let’s move a subsite to the root site in SharePoint Online using content and structure page: Go to Site settings page >> Click on “Content and Structure” link (https://tenant.sharepoint.com/sites/your-site-collection/_layouts/15/sitemanager.aspx) Select the subsite from the…

Read more