SharePoint Online: Default Site Collections

Default site collections in SharePoint Online: When you create a new Office 365 tenant, It creates these site collections by default.  If you go to the classic site collections page from SharePoint Online admin center, you’ll find these sites listed: The top-level site collection (or Root Site) at https://tenant.sharepoint.com https://tenant.sharepoint.com/portals/hub – Office…

Read more

SharePoint Online: How to Exclude Site from Search Results?

Requirement: Exclude Site from Search in SharePoint Online How to exclude a SharePoint Online Site from Search? SharePoint Online search results are security trimmed by default. Users get search results from all sites where they have access. However, there are some scenarios where you may want to prevent a site to appear…

Read more

SharePoint Online: Migrate a Folder with Sub-Folders and Files to SharePoint Online using PowerShell

Requirement: Migrate a folder with its sub-folders and files to SharePoint Online using PowerShell. PowerShell to copy a Folder with Its Sub-Folders and Files to SharePoint Online: Here is the PnP PowerShell to copy all files and sub-folders from a given folder from a local drive (or network drive) to SharePoint Online….

Read more

SharePoint Online: Archive Large List Items to another List using PowerShell

Requirement: Archive a large list by moving old items to a new list, in order to improve performance. How to Archive List Items in SharePoint Online? You can use the “Site Content and Structure” page to move list items in SharePoint Online. You can access it with the URL: https://tenant.sharepoint.com/_layouts/15/sitemanager.aspx, E.g. https://crescent.sharepoint.com/sites/marketing/_layouts/15/sitemanager.aspx…

Read more

SharePoint Online: Copy Attachments from List to Document Library using PowerShell

Requirement: Copy all attachments from a SharePoint Online List to Document Library How to Copy Attachments from SharePoint Online List? Here is the trick to copy all attachments from the SharePoint Online list: SharePoint stores list item attachments by creating sub-folders for each list item based on the item id under a…

Read more

SharePoint Online: How to Set Value and Disable a Field in List New Form?

Requirement: Disable a Field in SharePoint Online List New Form (NewForm.aspx). How to Set Value and Disable a Field in New Form? I had to fill a few field values from the URL query string and disable those fields in SharePoint Online New Form. My URL for New form would like: https://crescent.sharepoint.com/lists/ack/NewForm.aspx?ID=1&DeviceType=Monitor…

Read more

How to Encode-Decode a SharePoint Online URL using PowerShell?

Requirement: Decode a URL in SharePoint Online PowerShell to Decode URL: We need decoded URLs in various scenarios in SharePoint. Say, we want to pass the file URL as a parameter to some function. Decode SharePoint Online URL using PowerShell: We can also use SharePoint Online method:  In another situation, I had…

Read more

Fix: “The Site scoped feature being activated has a dependency on hidden Site Collection scoped feature” Error on Content Organizer

Problem: I need to enable ‘content organizer’ in site feature. However, when I tried activating the “Content Organizer” feature from SharePoint Online site features page, got an error message: The Site scoped feature being activated has a dependency on hidden Site Collection scoped feature ‘FeatureDefinition/15/0c8a9a47-22a9-4798-82f1-00e62a96006e’ (ID: ‘0c8a9a47-22a9-4798-82f1-00e62a96006e’). Hidden features cannot be auto-activated across…

Read more

SharePoint Online: Get Site Title using PowerShell

Requirement: Get SharePoint Online site title using PowerShell How to Get the Site Title SharePoint Online? To get the site name or site title, Just login to the site >> Click on Settings Gear >> Choose “Site Information” >> And you’ll find the site title! SharePoint Online: Get Site Title using PowerShell…

Read more