我试图使用Powershell从IIS7中删除"FTP授权规则“。
我认为我找到了“Authorization”Cmdlet,可以成功地在"FTP授权规则“中添加一个新规则,但是无法找到任何删除规则的方法。
在get-help中,有一个要删除-webconfiguration的引用,但是这个cmdlet并不存在。如果我尝试“获取帮助删除-WebConfiguration”,系统将显示如下4项,但没有“删除-WebConfiguration”:
删除-WebConfigurationBackup
删除-WebConfigurationLocation
删除-WebConfigurationLock
删除-WebConfigurationProperty
有人知道如何删除"FTP授权规则“中的指定规则吗?
发布于 2017-08-29 04:17:07
使用“删除-WebConfigurationProperty”可以成功删除规则
删除-WebConfigurationProperty -pspath 'MACHINE/WEBROOT/APPHOST‘-location’-filter‘-filter.FTP/ -AtElement /{user=’-name‘.“-AtElement@{user=’‘;-name=’dyk‘;权限=’1‘}
https://stackoverflow.com/questions/45878229
复制相似问题