[英]How could I remove/delete the rules from “FTP Authorization Rules” in Powershell?
I am trying to use Powershell to delete the "FTP Authorization Rules" from IIS7. 我正在尝试使用Powershell从IIS7删除“ FTP授权规则”。
Thought I found the "add-webconfiguration" Cmdlet and can add a new rule in "FTP Authorization Rules" successfully, but can't find any way to delete the rules. 以为我找到了“ add-webconfiguration” Cmdlet,可以成功地在“ FTP授权规则”中添加新规则,但是找不到删除规则的方法。
In the get-help add-webconfiguration, there is a reference to remove-webconfiguration, but this cmdlet does not exist. 在获取帮助add-webconfiguration中,有对remove-webconfiguration的引用,但是该cmdlet不存在。 If I try "get-help Remove-WebConfiguration", system will show 4 item as following but NO "Remove-WebConfiguration":
如果我尝试“获取帮助Remove-WebConfiguration”,系统将显示以下4个项目,但不显示“ Remove-WebConfiguration”:
Remove-WebConfigurationBackup Remove-WebConfigurationBackup
Remove-WebConfigurationLocation Remove-WebConfigurationLocation
Remove-WebConfigurationLock Remove-WebConfigurationLock
Remove-WebConfigurationProperty Remove-WebConfigurationProperty
Dose anyone know how to remove the specified rule in "FTP Authorization Rules"? 有人知道如何删除“ FTP授权规则”中的指定规则吗?
Use "Remove-WebConfigurationProperty" can success to delete the rules 使用“ Remove-WebConfigurationProperty”可以成功删除规则
Remove-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST' -location 'FTP' -filter "system.ftpServer/security/authorization" -name "." Remove-WebConfigurationProperty -pspath'MACHINE / WEBROOT / APPHOST'-位置'FTP'-filter“ system.ftpServer / security / authorization” -name“。 -AtElement @{users='';roles='dyk';permissions='1'}
-AtElement @ {users =''; roles ='dyk'; permissions ='1'}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.