Looking for a PowerShelly way to set multiple values simultaneously on a multivalue ARS virtual attribute

I've eliminated the wrong ways to do this ... now seeking advice on using set-qadcomputer  to apply a row/array of values to an ARS virtual attribute

Tried this:

$strVaValue = "'value1' ; 'value2' ; 'value3'"
$arSession = connect-qadservice -service <host> -proxy

Set-QADComputer -Connection $ARSession -Identity $objComputer.DN -ObjectAttributes @{edsvaVirtualAttributeName=@{Append=@($strVaValue)}}

I ended up with one entry in the multivalue attribute with the value "'value1' ; 'value2' ; 'value3'"
not usefule, and each of the entries should be an element

Parents Reply Children
  • In this instance - I definitely needed the array - as my booboo replaced all existing values for a few hundred objects  with just the one add-on value.
    oops.  I'd never considered this before - but RMAD doesn't include the ARS virtual attributes assigned to objects in AD ... What an enhancement that would be!
    I was able to pull the prior value from change history - 'before' the after ... I wish the PS> commands would expose that too. Can I hear .. another enhancement?

    Much appreciated Johnny Q! - thanks for sharing your knowledge.