I am using Get-WebConfigurationProperty to pull the values in the “requestquerystringsequence” section. I am then testing to ensure that the “@” symbol is present as one of the values in that collection. I can do this successfully with other characters “;,://” etc., but it fails with “@”.
I am guessing Powershell is reading this as a 'here string" or some other special character. I have tried escaping it with \ and `, to no avail. Any ideas?
$Arr = “@”
(Get-WebConfigurationProperty -Filter system.webserver/security/requestfiltering/denyquerystringsequences/add -PSPath ‘MACHINE/WEBROOT/APPHOST’ -Name sequence | Select Value) -match $Arr