Quantcast
Channel: General
Viewing all articles
Browse latest Browse all 7363

Set-WebConfiguration request Filtering per site

$
0
0

I am writting a PS script to set several IIS 7 configuration item. One of them is AllowHighBitCharactors.

I can find the setting using $wc = Get-WebConfigurationProperty -filter /system.webserver/security/requestFiltering -PSPath "IIS:\sites\$sitename

I then have to loop through $wc to find the verious settings. for example

forEach ($t in $wc) { $ahb = $t.allowHighBitCharacters }

If $ahb -eq True I want to change it to false.

What is the syntaxt to do that?


Viewing all articles
Browse latest Browse all 7363


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>