npc_caseym
asked on
Scripting bulk user edit in AD
I have a Powershell script to modify the extensionAttribute2 attribute for a list of AD users (from a CSV). How would I add a field to it? If I wanted to update the Organization AD field with data in the second column of the CSV...is that possible?
Thanks,
Casey
Here's my current script:
Thanks,
Casey
Here's my current script:
Import-Csv C:\USER.CSV | %{
Set-ADUser -Identity $_.Name -replace @{extensionAttribute2="myValue"}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open in new window