New-ADGroup | Create single group or multiple group using PowerShell script
HTML-код
- Опубликовано: 11 сен 2024
- This video will help to create single or multiple security groups using PowerShell cmdlet scripting.
#Import CSV which contains group information
$groups = Import-Csv ‘c:\grouplist\groups.csv‘
foreach loop through the CSV
foreach ($group in $groups) {
$groupproperty = @{
Name = $group.name
Path = $group.path
GroupScope = $group.scope
GroupCategory = $group.category
Description = $group.description
}
New-ADGroup @groupproperty
}
Issue is now fixed. Thanks again for this awesome video!