Quantcast
Channel: Windows PowerShell forum
Viewing all articles
Browse latest Browse all 21975

Concatenation

$
0
0

Hello Everyone,

Kindly assist am stuck trying to concatinate Powershell code below. i would like the Display Name to beName (Title - Branch) i.e like below i expect it to beMeshack King (Help Desk Support - NY)

$Username ="Meshack.King"
$Name = "Meshack King"
$Branch = "NY"
$Title = "Help Desk Support"
$DisplayN =$Name+ "'('+$Title" - "+$Branch')'"

Get-Mailbox $Username | Set-User -DisplayName $DisplayN

Meshack


Viewing all articles
Browse latest Browse all 21975

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>