Solved

Powershell Exchange and Active Directory Script

Posted on 2016-07-20
3
60 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 80

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

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

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

Suggested Solutions

This article outlines the process to identify and resolve account lockout in an Active Directory environment.
Active Directory security has been a hot topic of late, and for good reason. With 90% of the world’s organization using this system to manage access to all parts of their IT infrastructure, knowing how to protect against threats and keep vulnerabil…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

726 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