Is there a way to programmatically determine which application pool a service application is using?
Further i would like to get the information about the service account the app pool is using.
|
Is there a way to programmatically determine which application pool a service application is using? Further i would like to get the information about the service account the app pool is using. |
||||
|
|
|
In powershell use:
If you want to get the property in your own program you need to get a hold of the Service Application and the cast it to |
|||||
|
|
You can use the SharePoint Management Shell to get the information:
This command uses expressions to extract the desired parts from the app pool.
You can check (should not edit) the configuration of the app pool in the applicationHost.config (C:\Windows\System32\inetsrv\config\applicationHost.config). Search for the id or navigate to the xml element "applicationPools". |
|||
|
|
|
You can use in PowerShell the following command:
This results in the name of the service application and the account of the application pool. |
|||
|
|
|
You could use Or read this Question :) Hope it helps |
|||
|
|