Calculated Property

Hi ,

Can someone assist me to create calculated property with multiple values including string value within it. e.g. (Khune, Vaijnath : Wipro) these values are included in AD with diff property I need to combine them within one new property name ‘Suggested Name’.

you have everything you need in $_,

$Data = [PSCustomObject]@{
    FirstName = 'Vaijnath'
    LastName = 'Khune'
    Company = 'Wipro'
}

$Data | Select-Object -Property FirstName,LastName,@{E={ "{0}, {1}: {2}" -f $_.LastName,$_.FirstName,$_.Company};L='suggested Name'}

Thank You…