SharePoint 2010

SharePoint Password Recovery

Below is the powershell Script to recover SharePoint passwords.
&$env:windir\system32\inetsrv\appcmd.exe list apppool "SharePoint Central Administration v4" /text:ProcessModel.Password

Access BCS Data via C#

The below code snippet allows for access BCS data via C#SPFarm farm = SPFarm.Local;SPServiceProxy... spc = farm.ServiceProxies;BdcServ... sap = (BdcServiceApplicationProxy)( (from sp in spc where sp.TypeName.Equals("Business Data Connectivity Service") select sp).First().ApplicationProx... catalog = sap.GetDatabaseBackedMetada... IEntity ect = catalog.GetEntity("WPI.Shar... "ProjectDataEntity");ILobSy... ......

JQuery Add New Item to SPList

<div> <p> Task Title: <input id="Text1" type="text" /> <input id="Button1" type="button" value="Create Task" /> </p> </div><script src="http://ajax.googleapis... <script> $(document).ready(function () { $("#newTaskButton").click(f... () { CreateNewItem($("#newTaskTi... }); }); function CreateNewItem(title) { var batch = "<Batch OnError=\"Continue\"> \ <Method ID=\"1\" Cmd=\"New\"> ......

Export HTML Table to Excel with JS

<html xmlns="http://www.w3.org/19... runat="server"> <script Language="javascript"> function TableToExcel() { var strCopy = document.getElementById("de... window.clipboardData.setDat... strCopy); var objExcel = new ActiveXObject("Excel.Applic... objExcel.visible = true; var objWorkbook = objExcel.Workbooks.Add; var objWorksheet = objWorkbook.Worksheets(1); objWorksheet.Paste; } function exportToExcel() { var oExcel = new ActiveXObject("Excel.Applic... ......

SharePoint Search Server 2010 Error

I was experiencing the below error message. While searching the internet and poking around on my SharePoint farm for a possible solution to the error i was able to find the below solution. Error: The mount operation for the gatherer application [GUID] -crawl-0 has failed because the schema version of the search gatherer database is less than the minimum backwards compatibility schema version supported for this gatherer application. The database might not have been upgraded. Solution: Go to the Central ......