CAML Query to Filter Yes/No (Check box) Field Values using PowerShell

April 30, 2017    , , ,
Requirement: CAML Query to Filter Yes/No Field Values in PowerShell CAML Query to Filter Yes/No Field Values in SharePoint Online: Lets use PowerShell to query Yes/No field type values from a SharePoint Online list.   #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Com…

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

April 30, 2017    , , , , ,
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. …

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

April 30, 2017    , , , ,
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. #Load SharePoint CSOM Assemblies Add-Type -Path "C:\Program Files\Comm…

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

April 30, 2017    , , , ,
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 Sha…

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

April 30, 2017    , , , ,
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 SharePoi…

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.

April 29, 2017    , , ,
Problem: If you try to delete a SharePoint Online site which has subsites in it, SharePoint throws 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 …

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

April 29, 2017    , , , , , ,
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 t…

SharePoint Online: Check if Feature is Activated using PowerShell

April 29, 2017    , , , ,
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 "Sit…

SharePoint Online: Set Content Type to Read Only using PowerShell

April 27, 2017    , , , ,
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 t…

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

April 26, 2017    , , , , , ,
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…

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

April 24, 2017    , , , ,
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…

How to Enable External Sharing in SharePoint Online?

April 24, 2017    , , , , , , , , ,
Requirement: Enable external sharing in SharePoint Online using PowerShell How to Enable External Sharing in SharePoint Online? SharePoint Online allows you to collaboratively share your content with external users such as vendors, clients, customers, etc. To enable external sharing, you shou…

How to Set Choice Field Default Value to Blank in SharePoint?

April 23, 2017    
By default, when you create a new choice field, the very first choice you entered is also set as "Default value" in field settings. This results filling up the default value for the field in new item creation page (NewForm.aspx). However, there are times you may want to have a empty val…

Remove SharePoint Web Application Policy using PowerShell

April 20, 2017    , , , , , ,
Requirement: Remove Web Application Policy using PowerShell How to remove a web application Policy in SharePoint? To remove a user or group from SharePoint web application Policy, follow these steps: Login to SharePoint Central Administration Site Application Management >> Manage Web…

How to Delete a Host Named Site Collection in SharePoint using PowerShell?

April 20, 2017    , , ,
Requirement: Delete host named site collection using PowerShell in SharePoint. How to Delete host named Site Collection? Generally, Host named site collections in SharePoint are managed through PowerShell. Prior to SharePoint 2013, You cannot delete host named site collections from Central Ad…

Style SharePoint 2016 List View Web Part with Custom CSS

April 16, 2017    , , , , ,
Requirement: Add a custom style to SharePoint 2016's standard list view web part to make it look like a dashboard! By default, SharePoint list view web part looks dull, isn't it? So, lets add some custom CSS to the SharePoint 2016 list view, to make it look like a dashboard! How to a…

Powered by Blogger.