开发者

IIS 7 "account that is running application pool"

开发者 https://www.devze.com 2022-12-24 18:03 出处:网络
I need to find out which account is running one of my websites application pool. I need to add the user to a database in SQL Server.

I need to find out which account is running one of my websites application pool. I need to add the user to a database in SQL Server. Using IIS Mana开发者_Go百科ger, is there a way to check?


The "Identity" column in the Application Pool area of IIS is the account.


If you're running asp.net a quick and dirty way is a helper aspx page like so:

<%@Page %>

IIS is running as : 
  <%=System.Security.:Principal.WindowsIdentity.GetCurrent().Name%>
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号