SharePoint Online: Get Site Collection Storage Size – Quota Usage Report using PowerShell

Requirement: Need to generate a report to analyze all SharePoint Online Site collection storage consumption. How to Get the Storage Metrics of a SharePoint Online Site Collection? To find the storage details of a site collection, Go to: Click on Settings gear and then select Site Settings. In the “Site Settings” page,…

Read more

SharePoint Online: Get-Set “Yes/No (Check box)” Field Value using PowerShell

Requirement: Get or Set Yes/No Field Value in SharePoint Online using PowerShell. PowerShell to Get Value of Yes/No Field in SharePoint Online: Here is how you can read Yes/No field programmatically using PowerShell. Update Yes/No Field value in SharePoint Online List using PowerShell Let’s update Yes/No field in SharePoint online list programmatically….

Read more

How to Delete OneDrive for Business Site Collection in SharePoint Online?

Requirement: Delete OneDrive for Business Site Collection! After a business decision made to disable OneDrive in organization-wide, We configured the settings to disable OneDrive. However,  All existing OneDrive sites were active, users can access them and we wanted to remove them all! Any SharePoint My Site or OneDrive for business site gets…

Read more

How to Set Secondary Admin for All OneDrive for Business Sites?

When SharePoint My Site or OneDrive for Business site collection is created by the user, SharePoint assigns primary site collection administrator rights to the user. At times, you may have to gain Admin access in situations such as User left the organization, troubleshooting, etc. In SharePoint on-premises environments, we have the “User…

Read more

There was a problem deleting Web site “Site-URL”. Sites that have subsites or certain apps can’t be deleted. Please try again after deleting all subsites and removing the apps.

Problem: If you try to delete a SharePoint Online site that has subsites in it, SharePoint throws an error message saying “There was a problem deleting Web site “<subsite-url>”. Sites that have subsites or certain apps can’t be deleted. Please try again after deleting all subsites and removing the apps.“ Solution: So,…

Read more

How to Gain Owner Access to OneDrive for Business Sites in Office 365?

By default, When SharePoint My Site or OneDrive site collection is created by the user, SharePoint assigns primary site collection administrator rights to the user. In some cases, you may need to access another user’s OneDrive for Business site. E.g. User left the company and the manager of the user wants to…

Read more

SharePoint Online: Check if Feature is Activated using PowerShell

Requirement: PowerShell to check if feature is activated in SharePoint Online. How to Check if a specific Feature is Enabled in SharePoint? To check the current status of a SharePoint feature, Say: Publishing Feature – follow these steps: Navigate to Site Settings >> Click on “Site Collection Features” link under “Site collection…

Read more

SharePoint Online: Find Content Type usage using PowerShell

Requirement: Find where a Content Type is used in SharePoint Online You may have to find the content type usage in scenarios like, You are getting the “content type is still in use” error when trying to delete a content type. You are trying to figure out where a particular content type…

Read more

SharePoint Online: Set Content Type to Read Only using PowerShell

Requirement: Make a Content type to read only in SharePoint Online. How to Make a Content Type to Read-Only in SharePoint Online? To set a content type to read only: Go to Settings >> Site settings Click on “Site content types” link From the content types listed, Click on the name of…

Read more