January 2013 Entries

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... ......