mar*_*pet 6 iis powershell authentication iis-7.5
我不想在 GUI 中翻转开关来告诉 IIS 使用应用程序池标识进行匿名身份验证,而是想在 powershell 脚本中执行此操作。
Scott Forsyth 发布了一个解决方案,该解决方案更改了所有站点的默认设置。
如何仅对特定站点执行相同操作?用powershell?
找到了:
Set-WebConfigurationProperty -filter /system.WebServer/security/authentication/AnonymousAuthentication -name username -value "" -location MyLocation
Run Code Online (Sandbox Code Playgroud)
我只是将站点的名称用作MyLocation
,并且必须重新打开 IIS 管理器才能查看 UI 中的更改。
归档时间: |
|
查看次数: |
7185 次 |
最近记录: |