I have done a lot of background work on this before posting it here. I would like to discover all the IIS sites that are running in a machine using their Active Directory Service Interface (ADSI) objects. SO far, I've found programmatic methods to discover these.
- In
c++
we can use the com interface method ADsOpenObject to get the object properties. - In
c#
we can do the same, but I'm having some troubles getting the dlls to work. - In
js
we can use this script to achieve the same, but there are some constraints in obtaining all properties (for example, handling safe arrays)
Is there any way to view ADSI objects in GUI with all the properties or like a browser which can list all the IIS site objects found? Or a proper script/snippet/cmdlet which can achieve the same?