hi all,
i want to ask how can i use hash table to insert different attributes to user accounts like if a user has this@test.com email then insert description, employID, Office and some more attributes from a csv file.
my CSV file contains
Email Address, description, employID, Manager,JobTitle
$CSV = Import-csv path to your CSV file
#As long as you have a primary key in your CSV (common identifier)
Foreach($items in $csv){
get-aduser $items.email | set-aduser -description $items.description -employeeID $items.employID -Manager $items.manager -jobtitle $items.jobtitle
}
Hi Alex,
thanks so much. i also get a solution from google but i am not able to understand LDAP Filter attribute highlighted in Bold Letters, can you make me understand