Query Endpoints using WMI Provider

Basicallyl for administrative purposes we can use the WMI Provider.

 

Firstly we have to enable the WMI Provider in the corresponding service config file.

<configuration>
            <system.serviceModel>
                        <diagnostics wmiProviderEnabled="true" />

            </system.serviceModel>
</configuration>
 

The sample below  shows how to query for the endpoints in Power Shell

PS C:\> get-wmiobject endpoint -n root/ServiceModel | ft name

name
----
IService@
https://myMachine/Vdir/Service.svc

PS C:\>

Refer Using Windows Management Instrumentation for Diagnostics