How to add or replace Active Directory Users Title, Description, mail using PowerShell

Опубликовано: 17 Март 2026
на канале: Fun & Tech
4,660
22

This shows how to replace the attribute values of an AD user using powershell.
First: Get the user you want to change the values.
Get-ADUser -identity jjacob -Properties description, title, l, co, mail, userprincipalname
Second: Add values to the identified user.
Set-ADUser -identity jjacob -add @{title = "CFO" ; description = "CFO New" ; l = "Toronto"}
Third: Replace the existing value for the AD User
Set-ADUser -identity jjacob -replace @{title = "CFO New York" ; description = "CFO from New York" ; l = "New York"; co = "USA"; mail = "[email protected]"}