Change SharePoint 2010 Authentication from Windows to Forms

While creating a web application, by mistake selected “Windows” authentication, and felt we need “Forms” authentication (Claims Based Authentication) because of a business requirement. Went to Central Administration >> Application Management >> Manage Web Applications >> Selected the desired web application >> Authentication Providers. Oops, “Forms” option is disabled! Couldn’t find any…

Read more

Hide Contextual Search Scope from Search Dropdown

Requirement: Hide the contextual “This Site: Site Name” search scope from Search drop down. Solution: 1. Copy the folder OSearchEnhancedFeature from “C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\OSearchEnhancedFeature” as “OSearchNoContextScope” 2. Delete the SearchAdminLinks.xml file inside OSearchNoContextScope and remove the reference <ElementManifest Location=”searchadminlinks.xml”/>  from Feature.xml 3. Edit the Feature.xml file, Change the Feature…

Read more

Report for SharePoint Access Request Email Configurations

Requirement:People are moving to different roles, Few left the company from time to time. Access requests are sent to those of that kind. It’s a problem! We had to monitor the access request configurations to make sure its sent to the relevant person. So, wrote this PowerShell code to generate the report…

Read more

How to Install PowerShell ISE in Windows Server 2008 R2?

PowerShell ISE is a wonderful tool for creating, Debugging and executing PowerShell scripts. But it doesn’t get installed automatically. Here is how to install PowerShell ISE in Windows 2008 R2. You don’t have to download anything to get PowerShell ISE in Windows 2008 R2, It’s an Instinct feature but not installed by…

Read more

Trim audit log to Improve Performance in SharePoint

Found SharePoint content databases are growing even when no content was added from the user side. I was analyzing SharePoint Database growth, went ahead, and generated disk space report from SQL Server Management Studio (Right-click the database, choose Reports >> Standard Reports >> Disk Usage by Table) which gave me the clear…

Read more

Find in Which Content Database Site Collection Lives

Requirement: Get which site collections resides in which content database. Solution: Simplest method is: Navigate to Central Admin >> Application Management >> View All Site Collections.  This will display the content database name of a particular site collection. PowerShell Script to get site collection’s content database: This code outputs the content database…

Read more

How to Set Welcome Page Programmatically in SharePoint?

By default, SharePoint uses “default.aspx” page as the welcome page (or Home page) in SharePoint 2007 and “SitePages/Home.aspx” in SharePoint 2010. It uses Pages/Home.aspx when publishing feature is enabled under MOSS 2007. If you want to change Home Page: SharePoint provides users an interface to set the welcome page once Publishing feature…

Read more

Change All SharePoint Site’s Access Request Emails with PowerShell

Some time back, I posted an article on Configuring Access Requests from SharePoint. Now, To take the control, Business decided to give the access control requests to the SharePoint help desk, instead of site owners. So, the requirement is: Update All SharePoint Site’s access request Emails to: SharePoint Help Desk’s Mail id…

Read more

Iterate through All SharePoint Web Applications, Site Collections, Sub-sites, Lists and List Items Programmatically

Often in development, we may have to iterate through all web applications, Site collections, sites, Lists and List Items to get some job done or generate reports. Here are the code snippets to help. Iterate Through all web applications, Site collections, Sites, Lists and List Items Using C#: Starting the Loop from…

Read more

Alert Management Web Part – Released!

Received a lot of emails from people who read my post Alert Management Web part Mock-up on Alert Management Web Part Solution. Business Problem: In a Project management site, When new project sites created, the Project Manager creates alerts for all team members in multiple Lists/Libraries.  The pain point is: He needs…

Read more