Hi All
I have 50 groups to be created in AD under the OU OU=Groups,DC=contoso,DC=com
i have csv file in the below format, how can i import this csv file and create AD group in the OU, OU=Groups,DC=contoso,DC=com. Experts guide me
Hi All
I have 50 groups to be created in AD under the OU OU=Groups,DC=contoso,DC=com
i have csv file in the below format, how can i import this csv file and create AD group in the OU, OU=Groups,DC=contoso,DC=com. Experts guide me
Hi,
You can try some PowerShell script like this
$file = "C:\temp\groups.csv"
$OU = "OU=Groups,DC=contoso,DC=com"
Import-Csv -Path $file | ForEach-Object {
New-ADGroup -GroupScope Global -Path $OU -Name $_."Group name" -Description $_.Description -OtherAttributes @{mail=$_.email}
}
Best Regards,
Ian Xue
============================================
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.
25 people are following this question.