How to Hide a Content Type from New Button Dropdown in SharePoint?

Requirement: Hide a Content Type from new button drop-down in SharePoint How to make a Content Type Hidden in SharePoint? To hide a content type from the new menu in SharePoint, Go to List Settings >> Under “Content Types”, click on the “Change new button order and default content type” link. Set…

Read more

SharePoint Online: Get All Files from a Folder using PowerShell

Requirement: SharePoint Online PowerShell to list files in folder. PowerShell to Get Files from Folder in SharePoint Online: Let’s retrieve all files from a given folder in SharePoint Online document library using PowerShell. This SharePoint online PowerShell gets all files from folder. PnP PowerShell to Get All Files from a Folder in…

Read more

SharePoint Online: PowerShell to Get All Site Collections and Subsites

Requirement: SharePoint Online PowerShell to get all site collections and subsites. SharePoint Online PowerShell to list all site collections and subsites How to get all subsites in SharePoint Online using PowerShell? Here is the CSOM PowerShell to list all sites and subsites in SharePoint Online: This gets you the list of site…

Read more

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 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: 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

SharePoint Online: Update List Title, Description, Quick Launch Navigation Properties using PowerShell

Requirement: Set Title, Description and Quick Launch Navigation settings in a SharePoint Online List. How to Update List Title, Description and Quick Launch Navigation Settings in SharePoint Online? To set list title, description and quick launch navigation options in SharePoint Online, follow these steps: Navigate to your target list or library. Click…

Read more

SharePoint Online: PowerShell to Iterate Through All Files in a Document Library

Requirement: Get List of Files in a SharePoint Online Document Library using PowerShell SharePoint Online PowerShell to Iterate through All Files in a Document Library: Often in PowerShell scripting, we may have to loop through each file in a SharePoint Online libraries. This PowerShell script iterates through each folder of the library…

Read more