[英]Remove Ip From Ip and domain restriction through powershell on iis
[英]Remove Ip From Ip and domain restriction through powershell
我可以通過powershell在IIS IP和域限制列表中添加IP,但無法從那里刪除IP。
例子:
add-WebConfiguration /system.webserver/security/ipsecurity -Location "iis:\\default web site" -Value @{ipaddress="192.168.1.1";allowed="true"}
如何通過powershell從那里刪除相同的ip
我需要同樣的,這是有效的:
Remove-WebConfigurationProperty /system.webServer/security/ipSecurity -location "iis:\default web site" -Name "." -AtElement @{ipAddress="192.168.1.1";allowed="true"} -PSPath IIS:\
您可以指定 allowed = false,以有效關閉相同的規則。
add-WebConfiguration /system.webserver/security/ipsecurity -Locat "iis:\default web site" `
-Value @{ipaddress="192.168.1.1";allowed="false"}
Remove-WebConfiguration -Filter 'system.webserver/security/ipsecurity'-PSPath "iis:\" -Location "default website" -AtElement @{ipaddress="192.168.1.1";allowed="false";}
那是為我做的(當然位置和地址不同)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.