簡體   English   中英

如何在Powershell中從“ FTP授權規則”中刪除/刪除規則?

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM