Hide Contextual Search Scope from Search Dropdown

June 26, 2012    ,
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 &q…

Report for SharePoint Access Request Email Configurations

June 23, 2012    , , , , ,
Requirement: People are moving to different roles, Few left the company from time to time. Access requests are sent to those in that kind. Its 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 …

Trim audit log to Improve Performance in SharePoint

June 22, 2012    , , , , , ,
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 >>…

How to Set Welcome Page Programmatically in SharePoint?

June 15, 2012    , , , , , , ,
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 provide…

Change All SharePoint Site's Access Request Emails with PowerShell

June 15, 2012    , , , , ,
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 SharePoint help desk, instead of site owners. So, the requirement is: Update All SharePoint Site's Access request Emails to:…

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

June 12, 2012    , , ,
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#…

SharePoint Web Services Exposed to Anonymous Access Users

June 11, 2012    , , , , ,
Accidentally found my SharePoint Test environment's web services URLs are exposed in Google as anonymous access!  and I was able to access the web services anonymously! Even though SharePoint web services exposed by anonymous access, SharePoint will not allow anyone to do beyond their …

Programmatically Check whether a Particular List/Library Exists or Not

June 07, 2012    , , , ,
How to check if list exists in SharePoint programmatically? SharePoint 2010 offers TryGetList Method to determine the existence of a List programmatically. TryGetList returns null, if the specified list doesn't exist. SharePoint 2010 check if list exists: using (SPSite site = new SPSite(…

Setting up Scopes in SharePoint Search Results

June 02, 2012    ,
Requirement is: When user search from a particular site collection, either the default search result or advanced search result, should get content ONLY from a list of sites. Solution? Search Scopes! Search scopes in SharePoint allows users to narrow down the search results based on conten…

Powered by Blogger.