Solved

Powershell Exchange and Active Directory Script

Posted on 2016-07-20
3
62 Views
1 Endorsement
Last Modified: 2016-07-21
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
Comment
Question by:Trevor Jobin
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 81

Accepted Solution

by:
David Johnson, CD, MVP earned 500 total points
ID: 41721983
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
 

Author Comment

by:Trevor Jobin
ID: 41723027
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
 

Author Closing Comment

by:Trevor Jobin
ID: 41723045
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

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Always backup Domain, SYSVOL etc.using processes according to Microsoft Best Practices. This is meant as a disaster recovery process for small environments that did not implement backup processes and did not run a secondary domain controller that ne…
After seeing many questions for JRNL_WRAP_ERROR for replication failure, I thought it would be useful to write this article.
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question