$count=0 | |
$path="OU=Departments,DC=Denallix,DC=com" | |
$group_name_prefix="TestGroup" | |
while($count -ne 10){ | |
$count=$count+1 | |
New-ADGroup -Path $path -Name $group_name_prefix$count -GroupScope Global -GroupCategory Security | |
echo "Creating group: " $group_name_prefix$count | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment