【问题标题】:powershell display web app authenticationpowershell 显示 web 应用程序身份验证
【发布时间】:2015-02-06 19:06:53
【问题描述】:

我有一个从 IIS 中提取所有站点和应用程序信息的脚本。我能够使用

获得站点身份验证(Windows、基本、匿名)

Get-WebConfigurationProperty -filter system.webServer/security/authentication/anonymousAuthentication -Location "IIS:\Sites\$siteName" -name enabled.value

如何获取站点下应用的认证?

【问题讨论】:

    标签: powershell authentication iis


    【解决方案1】:

    我猜上面的代码不起作用。这是我用来获取应用程序身份验证的内容。

    Get-WebConfigurationProperty -filter system.webServer/security/authentication/anonymousAuthentication -PSPath "IIS:\Sites\$siteName\$appName" -name enabled.value

    我对基本身份验证和 Windows 身份验证重复此操作。

    谢谢!

    【讨论】:

      猜你喜欢
      • 2018-08-11
      • 2012-09-09
      • 2018-03-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-07-10
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多