我可以通过powershell在IIS IP和域限制列表中添加IP,但无法从其中删除IP。
示例:
/system.webserver/security/ipsecurity -Location“iis:\ -Value @{ipaddress=”192.168.1.1“;allowed=”true}
如何通过powershell从其中删除相同的ip?
发布于 2016-02-09 16:26:47
我也需要同样的东西,这也很管用:
Remove-WebConfigurationProperty /system.webServer/security/ipSecurity -location "iis:\default web site" -Name "." -AtElement @{ipAddress="192.168.1.1";allowed="true"} -PSPath IIS:\发布于 2015-09-01 13:43:42
您可以指定allowed = false,从而有效地关闭这条规则。
add-WebConfiguration /system.webserver/security/ipsecurity -Locat "iis:\default web site" `
-Value @{ipaddress="192.168.1.1";allowed="false"}发布于 2020-10-16 15:40:38
Remove-WebConfiguration -Filter 'system.webserver/security/ipsecurity'-PSPath "iis:\" -Location "default website" -AtElement @{ipaddress="192.168.1.1";allowed="false";}这是为我做的(当然有不同的地点和地址)
https://stackoverflow.com/questions/32331022
复制相似问题