Concatenation Variables Problem with extra space This topic contains 1 reply, has 2 voices, and was last updated by Don Jones 3 years, 6 months ago. Author Posts June 12, 2014 at 5:19 pm #16180 A K PParticipant The problem is I want to concatenate two variables, however I cant get rid of a space between the two. e.g. 1 Write-Host $_.ServerName $blah.ShareName output \\Server\ Share I have tried some variations but all fail badly! June 13, 2014 at 8:46 am #16211 Don JonesKeymaster That's because you're using Write-Host and passing it two parameters. "$($_.ServerName)$($blah.ShareName)" You should look into Join-Path, though. It's specifically designed for joining path components. Author Posts You must be logged in to reply to this topic.