PowerTip: Using Set-ADUser with multi-valued attributes

Summary: Using the -Replace parameter with Set-ADUser to take an array to populate multi-valued attributes

A picture containing scissors

Description automatically generated

Question: Hey Doctor Scripto, how can I use Set-ADUser to populate multivalued attributes in ?

Answer: You can use an array with the -Replace parameter to do it.

Set-ADUser -Identity “TestUser” -Replace @{ProxyAddresses = @(“Address1″,”Address2″,”Address3”)}

PowerShell, Doctor Scripto, PowerTip, , Walid Moselhy

The post PowerTip: Using Set-ADUser with multi-valued attributes appeared first on Scripting Blog.

 

This article was originally published by Microsoft's Azure SQL Database Blog. You can find the original article here.