[英]IP address and domain restrictions in iis through powershell
我在powershell
是個新手。
如何通過powershell
更改IIS中的ip address and domain restrictions
。
這是我們如何從IIS手動執行此操作的屏幕截圖。
目前,我正在使用此代碼更改設置。
Set-WebConfigurationProperty /system.webserver/security/ipsecurity -Name allowUnlisted -Value "true" -Location "IIS:\\Sites\\123" -pspath IIS:\\Sites\\123
不知道這是正確還是錯誤。
請幫忙。
編輯:此代碼將為未指定的客戶端值切換Access,因此在這方面是正確的。 在不使用-PSPath的情況下使用它,它將起作用
Set-WebConfigurationProperty /system.webserver/security/ipsecurity -Name allowUnlisted -Value "true" -Location "IIS:\Sites\123"
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.