Advertisement
Jexal

1eb605de-3fdf-4de1-9c68-18c1f1540b67

Mar 17th, 2025
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. # Expandable here-string
  2. $multiLineString = @"
  3. This is a multi-line
  4. string in PowerShell.
  5. It supports variable expansion: $env:USERNAME
  6. "@
  7.  
  8. # Literal here-string
  9. $literalString = @'
  10. This is another multi-line
  11. string, but variables like $env:USERNAME won't be expanded.
  12. '@
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement