Identify IIS installed and Websites running

(imported topic written by SystemAdmin)

I am trying to figure out a way to use DSS - SAM to identify servers running IIS and to determine the websites running under IIS. Has anybody been able to do this? I am using DSS-SAM version 1.2.4.546. Thanks

(imported comment written by SystemAdmin)

I did this using a property. DSS won’t scan for this because its a part of Windows. My relevance code was:

if exists running service “iisadmin” then (if (it contains “%00”) then (preceding text of last “%00” of it) else (it)) of (it as string) of (value whose (identifier of it as integer = 1015) of it as string & “-” & value whose (identifier of it as integer = 1023) of it as string) of keys whose (exists value whose (identifier of it as integer = 1015) of it AND exists value whose (identifier of it as integer = 1023) of it )of key “LM\w3svc” of metabase as string else “Not installed”

(imported comment written by SystemAdmin)

It’s not a matter of scanning for parts of Windows… It’s a factor of whether the unique executable identifying IIS is in the DSS SAM catalog or not.

It looks like the executable is inetinfo.exe, so if you add this to your DSS SAM catalog, you’ll get the inventory of systems that have it installed. (I’m surprised we don’t include it in the base catalog. We might exclude it because it’s part of Windows, but maybe we are simply suppressing it when we publish the catalog.)

Here’s what it looks like to add from unknowns in my deployment:

http://farm4.static.flickr.com/3615/5774095585_355afc91fc_b.jpg

To get the websites running under IIS on each system, you would use a property. According to View a List of Sites on a Web Server (IIS 7) | Microsoft Learn, it looks like this command will generate a list of sites for you:

appcmd list site

So you could use this to get the list and then have the analysis property return the list. Then in DSS SAM, add the new property as a Computer Property and the results will show up for each computer.

(imported comment written by SystemAdmin)

Thanks Jeff - That looks like it will work great!

(imported comment written by SystemAdmin)

when I filter on “inetinfo” I get a HUGE list of things and finding the inetinfo executable in the list is not going too well. Is there any tricks to getting a better result when filtering?