I am very new in powershell
.
How to change ip address and domain restrictions
in IIS through powershell
.
Here is the screen shot how we can manualy do this from IIS.
Currently I am using this code to change the settings.
Set-WebConfigurationProperty /system.webserver/security/ipsecurity -Name allowUnlisted -Value "true" -Location "IIS:\\Sites\\123" -pspath IIS:\\Sites\\123
Don't know this is correct or not.
Please help.
EDIT: This code will toggle Access for unspecified clients value so it is correct in that respect. Use it without -PSPath and it will work
Set-WebConfigurationProperty /system.webserver/security/ipsecurity -Name allowUnlisted -Value "true" -Location "IIS:\Sites\123"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.