We help IT Professionals succeed at work.

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"
Comment
Watch Question

Simple Geek from the '70s
Distinguished Expert 2019
Commented:
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

Author

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!

Author

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.