In the user profile in AD, there is a description attribute. Using PowerShell, I add a value to the user in the Description:

Set-QADuser i.ivanov -Description "Первое значение" 

When repeated with a different value, the first is overwritten. If I understood correctly, this attribute does not have multi-valued properties.

I made a little bike:

 $var = Get-QADuser i.ivanov | Select Description Set-QADuser i.ivanov -Description "$var ; Второе значение" 

As a result, because the description field type is not a string, the value of $ var - @ {Description = First value}

And I get in the user description:

@ {Description = First Value}; Second meaning

Can the Description attribute add multiple values? Or how can I get the first value without @ {Description =}

    1 answer 1

    How can I get the first value without @ {Description =}

    ExpandProperty will save you:

    $var = Get-QADuser i.ivanov | Select -ExpandProperty Description

    • Thank you, saved. - 1d0