Skip to content

Instantly share code, notes, and snippets.

@mikerodionov
Created February 14, 2019 13:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Embed
What would you like to do?
$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