Add Custom Scope to SharePoint Search Dropdown using PowerShell

Requirement: We’ve created a custom search scope “Search All Documents” in SharePoint Central Admin and would like to include it in search scope drop downs of few site collections. SharePoint: Add search scope to drop-down Well, it’s a few clicks job to include custom search scopes to search drop down in SharePoint….

Read more

Find All Inactive Features in SharePoint with PowerShell

What is inactive Feature in SharePoint? Well, Features which are installed but not activated anywhere! Here is the PowerShell script to find inactive features for SharePoint: Please note: There could be many OOTB features that stay Inactive based on the site template we use. So, use this script to get an insight…

Read more

SharePoint Features Usage Report using PowerShell

Task: Generate a report for All Installed/Activated Features for the entire SharePoint Environment. Here are some nifty PowerShell scripts to find features installed on the farm as well as specific features activated on a particular scope. Get-SPFeature cmdlet:Get-SPFeature cmdlet retrieves all features installed on the environment when the “Scope” parameter’s value is…

Read more

Import XML File Data into SharePoint List using PowerShell

Requirement: PowerShell to Import XML to SharePoint List We have a utility from a third-party system that generates project data in XML format. We had to import those data to a list in the PMO site. In other words: We’ve to import from XML file to SharePoint list. Here is a sample…

Read more

How to Add New List Item in SharePoint using PowerShell?

My PowerShell scripts to add list item in SharePoint: Add SharePoint list items using PowerShell The syntax to add new list item in SharePoint using PowerShell, goes like this Add list item in SharePoint with PowerShell Lets add new task to the task list using PowerShell:  Result: Here is my another article…

Read more

Exclude a Column from SharePoint Search Crawl

Requirement:  Exclude a column from SharePoint search. By default, the SharePoint search engine craws and indexes all documents and their associated metadata properties from lists and libraries. In our case, We keep few fields for configuration in a custom SharePoint application and don’t want those fields to appear in SharePoint Search results….

Read more

Find Who has Created / Modified a SharePoint View

Ever wondered how to find the user who has created or modified a particular SharePoint view? and when it was created/modified? Well, There is no SharePoint UI to get these information! But using SharePoint object model, we can retrieve these data programmatically from SPFile object’s properties. Here is how I retrieved “Created…

Read more

Get All SharePoint Site Collection Owners (Primary/Secondary Site Collection Administrators)

Requirement is to find out owners of each SharePoint site collection in the environment.We needed this data to get approvals on critical changes and to inform site owners prior to maintenance windows. Simple! Use STSADM command: On SharePoint 2007 and above, STSADM command can be used to get primary owner details of…

Read more