title: Return IIS Windows Authentication Provider in PowerShell for Desired State Configuration script
body: <p>I am writing some logic for DSC to check if Negotiate:Kerberos is in the provider list for Windows Authentication under one of our Websites. I've written the logic to check for Windows Authentication and confirm that's turned on:</p>
  
  <pre><code>Script ActiveSyncAuthentication
              {
                  SetScript = {
                       Set-WebConfiguration system.webServer/security/authentication/windowsAuthentication -PSPath IIS:\ -Location 'Default Web Site/MySite' -Value @{enabled="True"}
                  }
                  TestScript = {
                       return ((Get-WebConfigurationProperty //system.webServer/security/authentication/windowsAuthentication -PSPath IIS:\ -Location 'Default Web Site/MySite' -Name Enabled) -eq "True")  
                  }
                  GetScript = { }    
              }  
  </code></pre>
  
  <p>I know that I can add to the list of providers with the below:</p>
  
  <pre><code>Add-WebConfiguration -Filter system.webServer/security/authentication/windowsAuthentication/providers -PSPath IIS:\ -Location 'Default Web Site/MySite' -Value Negotiate:Kerberos  
  </code></pre>
  
  <p>However, I'm struggling with returning this using Get-WebConfiguration or Get-WebConfigurationProperty. </p>