I am new to scripting and I have the task of creating a powershell script that will check and print the status of all authentication types of IIS 7.0 and 7.5 virtual directories.
As you probably know, there are 6 types of authentication (basic, windows, digest, forms, asp.net impersonation, anonymity).
For basic, windows, digest and anonymous I used this command:
Get-WebConfigurationProperty -filter /system.web/security/authentication -name enabled "IIS: \ Sites \ My Site \"
But I can not find a command that can verify the state for authentication using forms. Can you help me with this?
For example, if forms authentication is enabled in IIS Configuration Manager, I want to get the value in powershell that it is enabled.
Thank you very much.
source share