Quantcast
Channel: Scripting Blog
Viewing all articles
Browse latest Browse all 2129

PowerTip: Using Set-ADUser with multi-valued attributes

$
0
0

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 Active Directory?

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, Active Directory, Walid Moselhy

 

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


Viewing all articles
Browse latest Browse all 2129

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>