Force Delete Corrupted SharePoint List using PowerShell

I got few corrupted lists when a custom code, which provisions lists got stuck in middle! I couldn’t delete the corrupted list neither from SharePoint web interface nor using SharePoint Designer! When I tried to access the corrupted SharePoint list from browser, received this error message: “List does not exist. The page…

Read more

Delete Users from SharePoint Site Collection using PowerShell

Requirement: Delete user from site collection in SharePoint 2013  How to delete a user from site collection? So you don’t want a particular user to have access to SharePoint 2010 site anymore! Want to delete users from SharePoint 2010 site collection, isn’t it? Well, How to delete users from site collection? To…

Read more

How to Run C# Code from PowerShell?

Some time back, I wrote C# code for SharePoint Administration Governance purpose: Find Large Lists & Generate Report in SharePoint , which actually scans all lists in all sites and creates a report in CSV format. I feel PowerShell is more convenient than C# for couple of reasons: Because, PowerShell is quite…

Read more

Content Editor Web Part Content Link Redirect – 404 Page Not Found Error

Problem: A particular SharePoint site’s Home page URL leads to 404 page not found error. While all other pages were working without any issues, On hitting the Home page URL, observed it is redirecting to some other URL that doesn’t exist! Root cause: Usually, these kinds of redirects are placed in CEWP…

Read more

Add a Link to Site Settings Page in SharePoint 2010

There was a requirement to get list owners info who created the lists, we developed a custom application page in SharePoint 2010: How to Create Custom Application Page in SharePoint 2010 to get List Owners But the link to the application page to be placed somewhere on the site for easy access…

Read more

Set Content Editor Web Part (CEWP) Content with PowerShell

Scenario: We have a Project site collection with 100’s of sub sites created for each project from a custom site template. The home page of each site has a content editor web part with some content in it, titled “Dashboard Links”. Years later, The business wanted to change the content in the…

Read more

Get Query String and Set List Form Field Value using jQuery

Years back, I used JavaScript for the similar requirement in SharePoint 2007: Get the value from URL Query String and populate the value of SharePoint list form field: How to Get the Query String from URL and Set SharePoint List Form field value? Now in SharePoint 2010, lets use jQuery to get…

Read more

Building Charts in SharePoint with Google Charts API

Looking for a quick way to build Charts & Graphs from SharePoint list data? Here is the quickest way to create charts on SharePoint with Google Chart API! Go to: http://usermanagedsolutions.com/SharePoint-User-Toolkit/Pages/Pie-Bar-Chart-Connector.aspx Provide the “Edit view” URL in the given text box. E.g. I have a List “Q1Summary” in the Finance site collection….

Read more

Export SharePoint 2007 Search Crawl History using PowerShell

Here is the PowerShell script to export Search crawl history in SharePoint 2007 using PowerShell: This gives data such as: CrawlType (2 – Increment, 1- FULL), ContentSourceID ( 4 – Local Crawls, 10 -People search), Status, Start Time, End Time, Success Count, Error Count, Warning Count of last 8 crawls.

Read more