Re: Combining Powershell object properties
- From: Karl Mitschke <kmitschke@xxxxxxxxxxxxx>
- Date: Thu, 31 Jul 2008 14:02:33 +0000 (UTC)
Hello Nick,
Are you trying to populate an Exchange field with this information, or just use it in your sript?
You could do
$user = get-user <alias>
$fullname = $user.FirstName + $user.lastname
now, $fullnae eill be 'firstnamelastname' with no spaces.
Karl
Hi,
I was wondering how you would combine two existing object properties
into one (in Powershell)? I.E. $_.firstname + $_.lastname =
$_.fullname
Do you need to you the add-member cmdlet?
Thanks,
-Nick
.
- References:
- Combining Powershell object properties
- From: Nick L
- Combining Powershell object properties
- Prev by Date: (Powershell) Combine Object properties
- Next by Date: Redemption Unicode RDOFolder2.FolderPath
- Previous by thread: Combining Powershell object properties
- Next by thread: (Powershell) Combine Object properties
- Index(es):