Quantcast
Channel: Windows PowerShell Forum
Viewing all articles
Browse latest Browse all 2562

What Escape char. to use

$
0
0

I'm try to run this IIS cmdlet from a script:

Set-WebConfiguration system.webServer/httpRedirect "IIS:\sites\$i.SiteName" -Value @{enabled="true";destination=$i.RedirectURL;exactDestination="true";httpResponseStatus="Permanent"}

The part that is not working is the variable in "IIS:\sites\$i.SiteName"


Viewing all articles
Browse latest Browse all 2562

Trending Articles



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