Posts

Showing posts with the label Bulk add description for AD contacts

Add description to AD contact and bulk add description for contacts - Active Directory PowerShell

Image
Add description to AD contact- Active Directory PowerShell To update a single contact with description Get-adobject -filter {mail -eq  "user@domain.com"} | set-adobject -description "contract employee" Bulk add description for contacts Create a csv file (contact_desc.csv) for the contacts with their external email address and description. The Column names as in the below snapshot . Open Active directory powershell as an administrator and run the below command to update the contacts with description. $users = Import-Csv contact_desc.csv foreach($user in $users) { $ExternalEmailAddresses=$User.ExternalEmailAddress $des1=$user.des Get-adobject -filter {mail -eq $ExternalEmailAddresses} | set-adobject -description $des1 }