AddShell



  • There's a description in the AD user profile. PowerShell, add the user to the Writing, any meaning:

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

    When reapplying with another value, the first shall be erased. If I understand correctly, this attribute does not have many properties.

    I made a little bike:

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

    Eventually, because the type of field description isn't a line, value of $var - @ {Description=First meaning}

    And I get in the user's description:

    {Description=First Importance} Second importance

    Can multiple values be added to the attribute? Or how am I supposed to get first without {Description=}



  • I don't know how to get first without {Description=}

    ExpandProperty will save you.

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




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 3