Get IIS Settings

I want to print for registration the basic information about the site on which my service works IIS. Any suggestions on how to do this.

Some example would be great.

thank

+5
source share
1 answer

One easy way to see the IIS application pool identifier for your site is to add the .aspx page to the default directory with the code below. Make sure that you enable anonymous authentication or Windows authentication and try to open the page through a browser.

<% @ Page Language="C#" %>
<%
Response.Write ("App Pool Identity - " + System.Security.Principal.WindowsIdentity.GetCurrent().Name);
%>

Something similar to this should arise.

enter image description here

0
source

All Articles