Is there anyway where we can get the authentication methods used in iis using any windows command or powershell command?i have used the below appcmd command but it gives me the entire config of 'Default Web Site', appcmd list config "default web site"


You have the module webadministration. This module contain the Get-WebConfiguration cmdlet (link to documentation).

For your requirement, you can run first:

Import-Module webadministration

And run the following:

Get-WebConfiguration -filter "system.webServer/security/authentication/*" -PSPath "IIS:\Sites\" | foreach {$_.SectionPath}

The result:

PS C:\Users\vmsilvamolina> Get-WebConfiguration -filter "system.webServer/security/authentication/*" -PSPath "IIS:\Sites\" |
 foreach {$_.SectionPath}
PS C:\Users\vmsilvamolina>


Based on your comment I added ho to select a particular site.

$site = "MySiteName"
Get-WebConfiguration -filter "system.webServer/security/authentication/*" -PSPath "IIS:\Sites\$site" | foreach {$_.SectionPath}
  • thank you for the prompt repsonse am able to get the total list of authentications ,but if we need to know which anthentication is applied for a particular website do we need to pass the parameter value in "IIS:\path of website "?
    – user454108
    Jan 30 '18 at 5:04
  • I edited my response adding the selection on particular website. Jan 30 '18 at 12:14
  • 1
    the changed comment has worked good, thank you for the assistance .
    – user454108
    Jan 31 '18 at 5:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.