Scott Forsyth's Blog

Postings on IIS, ASP.NET, SQL Server, Webfarms and general system admin.

How to find the SiteID in IIS5 and IIS6

Occasionally I need to explain how to find the SiteID / Site Identifier in IIS5 and/or IIS6 so I thought I would quickly blog on how to do that so that I have a page that I can reference rather than typing it out each time.

When running various scripts or command line utilities, it is fairly common to need the Site ID of a site in IIS.  Fortunately it is quite easy to find.

IIS5: In IIS 5 or 6, view the properties of the website and in the Web Site tab, click on the Properties button for the logging. At the bottom of the Extended Logging Properties window is the Log file name. It will be something like this: W3SVC38\exyymmdd.log. The Site ID is 38 in this case.

 

IIS6: The IIS5 trick still works, but in addition you can click on the Web Sites major heading in the left hand side of the IIS admin tool and view the "Identifier" on the right hand side for whichever site you need. This is also the same Site ID.

 

Posted: Jul 29 2005, 01:25 PM by OWScott | with 3 comment(s)
Filed under:

Comments

Scott Forsyth's WebLog said:

Starting in the first version of ASP.NET, Microsoft has provided a tool to control which version of the...
# May 31, 2006 1:00 AM

Scott Forsyth's WebLog said:

ASP.Net V2.0 has much improved encryption over v1.x including the ability to encrypt any part of the

# November 7, 2006 8:44 PM

Ketul Patel's Blog said:

Since yesterday I have been struggling to open the Customer and Orders Manager for the Commerce Server

# June 28, 2007 6:43 AM