Pages

Monday, November 30, 2009

Get SharePoint WebApplication/Application Pool owner's password

Hi All,
I was trying to get the username and the password for the sharepoint webapplication owner.
after long searching in this thing I came up with one short custom solution and this can be done like this:
SPWebApplication webApp = SPContext.Current.Site.WebApplication; string userName =webApp.ApplicationPool.Username;
string password == webApp.ApplicationPool.Password;

this gets the username and password of the Application Pool Creator for web application

No comments:

Post a Comment