SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'd like to run a script report back what IIS Sites are SharePoint and which ones are normal sites.

Using the following command in powershell, I get a long list of properties of the application pool, but there is no uniqueness between what sites are SharePoint sites and which ones are not.

get-wmiobject -class IISApplicationPoolSetting -namespace "root\microsoftiisv2"
              -computername $server -authentication 6
share|improve this question

Look at the virtual directories via IIS. There should be some pointing to /_layouts/, /_controltemplates/, /_vti_bin/, etc. These all point to the physical "Sharepoint root" folders (C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\14)

share|improve this answer

Your SharePoint sites may all be running under an appropriate application pool identity, separate from any other IIS site on your environment.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.