Ironman Software Forums
Continue the conversion on the Ironman Software forums. Chat with over 1000 users about PowerShell, PowerShell Universal, and PowerShell Pro Tools.
Here strings are interpreted literally and can include multiple lines.
You can define a here string in PowerShell by specifying a
@ before the first quote and after the last quote.
@" Hello! World! "@
Here strings can be either single or double quotes.
Double quoted strings will replace variables.
$World = "Earth!" @" Hello! $World "@
Single quoted strings will not replace variables.
$World = "Earth!" @' Hello! $World '@
Find this useful? Please consider sharing this article. Have a question about PowerShell? Contact us and we'll write a post about it.