How to Concatenate a String in PowerShell — LazyAdmin

PHOTO EMBED

Fri Dec 23 2022 16:23:53 GMT+0000 (Coordinated Universal Time)

Saved by @savabeh191

$string1 = "The quick brown fox"
$string2 = "jumps over the lazy dog"

$result = $string1 + " " + $string2

Write-Host $result

# Result
The quick brown foxjumps over the lazy dog
content_copyCOPY

https://lazyadmin.nl/powershell/concatenate-string/