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.
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.