是否有办法使用Powershell修改IIS (8.0)中URL的授权规则?
我已经看到了很多针对.NET和FTP的解决方案,但还没有真正针对IIS。比如ftp。
Import-Module WebAdministration
Add-WebConfiguration -Filter /System.FtpServer/Security/Authorization -Value (@{AccessType="Allow"; Users="$FTPUsername"; Permissions="Read, Write"}) -PSPath IIS: -Location "Default FTP Site/$FTPUserDir/$FTPUsername" 此外,powershell中的帮助功能也没有真正的帮助。
发布于 2014-05-16 21:03:21
试试这个:
Add-WebConfiguration -Filter /system.webServer/security/authorization -Value (@{AccessType="Allow"; Users="$IISUsername"; Permissions="Read, Write"}) -PSPath IIS: -Location "Your IIS Site"发布于 2017-08-05 03:16:22
我成功地将用户添加到web服务器本身(而不是站点)的授权规则中:
Add-WebConfiguration -Filter "/system.webServer/security/authorization" -Value @{accessType="Allow"; users="xxx"; verbs="xxx"}https://stackoverflow.com/questions/23687400
复制相似问题