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.