[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 719
  • Last Modified:

How does IIS come up with website identification numbers "/LM/W3SVC/???" ?

How does IIS come up with website identification numbers "/LM/W3SVC/???" ?

It doesn't seem to have any rhyme or reason on sites outside the main subsite.  We want to generate a script to feed into iiscnfg.vbs to manipulate the xml metabase but the numbering seems random on newly generated sites.

We get results like "/LM/W3SVC/18876453" for a metabase path.

Does anyone know how these are generated?

Can we alter them in the metabase without disrupting the site?

Help!!
0
itcs-css
Asked:
itcs-css
1 Solution
 
Dave_DietzCommented:
"How does IIS come up with website identification numbers "/LM/W3SVC/???" ?"

Aside from the Default Web Site and a few other specific cases where a predetermined number is used the site instance is generated by taking a hash value of the friendly name of the site i.e. "Company Web" will be hashed to a numeric value and "Bob's Fish and Fry" will get hashed to a different number.

"Does anyone know how these are generated?"
Yes....  ;-)

"Can we alter them in the metabase without disrupting the site?"
Yes.  I would recommend that if you want to do this you shut down IIS and make the changes in the metabase.xml file manually.

You might be able to make the changes dynamically but I'm not sure that scenario has been tested while IIS was actively running.

Dave Dietz
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now