![](/img/trans.png)
[英]How to modify Authorization Rules (URL authorization) in IIS using Powershell
[英]How could I remove/delete the rules from “FTP Authorization Rules” in Powershell?
我正在尝试使用Powershell从IIS7删除“ FTP授权规则”。
以为我找到了“ add-webconfiguration” Cmdlet,可以成功地在“ FTP授权规则”中添加新规则,但是找不到删除规则的方法。
在获取帮助add-webconfiguration中,有对remove-webconfiguration的引用,但是该cmdlet不存在。 如果我尝试“获取帮助Remove-WebConfiguration”,系统将显示以下4个项目,但不显示“ Remove-WebConfiguration”:
Remove-WebConfigurationBackup
Remove-WebConfigurationLocation
Remove-WebConfigurationLock
Remove-WebConfigurationProperty
有人知道如何删除“ FTP授权规则”中的指定规则吗?
使用“ Remove-WebConfigurationProperty”可以成功删除规则
Remove-WebConfigurationProperty -pspath'MACHINE / WEBROOT / APPHOST'-位置'FTP'-filter“ system.ftpServer / security / authorization” -name“。 -AtElement @ {users =''; roles ='dyk'; permissions ='1'}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.