• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 70
  • Last Modified:

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"
1
Trevor Jobin
Asked:
Trevor Jobin
  • 2
1 Solution
 
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

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now