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
    }

Комментарии • 2

  • @avinash0072355
    @avinash0072355 3 месяца назад

    Issue is now fixed. Thanks again for this awesome video!