title: How to enable/disable/get status for extended protection for authentication in IIS using WMI/ADSI and C#?
body: <p>Can someone provide a code sample or resource which can help me programatically <strong>get status, enable and disable</strong> extended protection for authentication in IIS 7/IIS 7.5 using C#?</p>
  
  <p>C# with WMI/ADSI is preferred. </p>
  
  <p>i.e I am asked to use <strong>System.Management</strong> API or <strong>Microsoft.Web.Administration</strong> API using C# and i need to determine if <strong>EAP is enabled or not on a web server level</strong> (as web server default for all future websites).</p>
  
  <p>Any other solution using C# is also welcome.</p>
  
  <p>Looking forward to helpful answers. Thanks</p>
  
  <p>Steve</p>