Showing results for Active Directory - Scripting Blog [archived]

Oct 23, 2019
1
1

PowerTip: Using Set-ADUser with multi-valued attributes

Doctor Scripto
Doctor Scripto

Summary: Using the -Replace parameter with Set-ADUser to take an array to populate multi-valued attributes 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 @{Proxy...

PowerTipActive DirectoryPowerShell
Oct 23, 2019
1
0

Copy multi-valued Active Directory attributes from one user to another with PowerShell

Doctor Scripto
Doctor Scripto

Summary: Using -Replace parameter with Set-ADUser to copy Active Directory multi-valued attributes Q: Hey, Doctor Scripto! We are in the middle of an Active Directory migration and need to copy the multi-valued attribute “ProxyAddresses” from old user accounts to new ones. Can you do with a few lines of code? —ND A: Hello ND, Hello e...

Active DirectoryPowerShellDoctor Scripto