簡體   English   中英

通過Powershell在IIS中進行IP地址和域限制

[英]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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM