Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

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
add comment

2 Answers 2

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
add comment

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
add comment

Your Answer

 
discard

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.