Add multiple users to multiple groups from one import csv
问题 I have a csv with 2 columns, one column is AD group names and one is user account names. I am trying to read the csv and import the users into their corresponding group. Here is what i have to so far. It's saying both arguments(identity,member) are null, which makes no sense since the headers are correctly specified. import-module activedirectory $list = import-csv "C:\Scripts\Import Bulk Users into bulk groups\bulkgroups3.csv" Foreach($user in $list){ add-adgroupmember -identity $_.Group