$sourced = Import-Csv "C:\temp\Bulk-computers.csv"
foreach ($s in $sourced)
{
Add-ADGroupMember -Identity GROUP1 -members $s.name
}
Very important that in the top of the .CSV file, you need a section with name, otherwise it wont work. Like this:

Good luck
/P
Inga kommentarer:
Skicka en kommentar