PowerShell Active Directory Loop Through All User Properties
I'm currently working on some PowerShell to update Active Directory User Attributes. The script will read the updated attributes from a CSV. What I would like to achieve is to iterate through users and compare each user attribute against the value stored in the CSV. If the CSV attribute value doesn’t match the user's Active Directory attribute I would like to update the value in Active Directory At present I can select a user and display the all the properties using the following: Get-ADUser -Filter "UserPrincipalName -eq '$($upn)'" -Properties * -SearchBase 'DC=core,DC=com' What I'm strugglin
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.