Jorge Ocampo
asked on
set-aduser powershell command issue
i am trying to set attribute11 for a list of users but everytime i run my script it does all users instead of the ones in the list.
$users = Import-Csv -Path C:\temp\Users.csv
foreach ($user in $users) {
Set-ADUser -Identity $user.SamAccountName -Add @{extensionAttribute11="BL AHBLAH"}
}
$users = Import-Csv -Path C:\temp\Users.csv
foreach ($user in $users) {
Set-ADUser -Identity $user.SamAccountName -Add @{extensionAttribute11="BL
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
samaccountname,first,last
tjones,Tom,Jones
aardvark,Aaron,Ardvark
????