Created
February 14, 2019 13:56
-
-
Save mikerodionov/c6b5551e7dd8af3802225a9893e57b96 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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