Powershell Exchange and Active Directory Script

Hello,

I need to update a custom attribute based off of another custom attribute.

I'm terrible at writing scripts and code so I'm looking for someone to pretty much type it out for me.

Thank you

In my head it goes like this

If the users Office (extensionattribute5) is "this" change extensionattribute3 to "this"
Trevor JobinAsked:
Who is Participating?
 
David Johnson, CD, MVPOwnerCommented:
something along the line of
Get-ADUser -Properties enterattributename -Filter {enterattributename -like "value to search" } |Set-ADUser –replace @{ enterattributename2 =”value to change”}

Open in new window

1
 
Trevor JobinAuthor Commented:
David Johnson, you are the greatest! Worked like a dream!!! I wish I had your knowledge my friend. You helped me tremendously. Thanks again!
0
 
Trevor JobinAuthor Commented:
Love this site and the people who help folks like me who just can't connect the dots in their head. Thank god for the internet and being able to reach out and request help from those who are more gifted than ourselves.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.