Skip to content

Commit

Permalink
Create Create-Groups.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
rswio authored Jan 26, 2025
1 parent 4bdfb93 commit 60aba38
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Active Directory/Create-Groups.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
$Groups = @("HR Team", "Finance Team", "IT Team") # Replace with group names
$OU = "OU=Groups,DC=example,DC=com" # Adjust OU path

foreach ($Group in $Groups) {
New-ADGroup -Name $Group -GroupScope Global -GroupCategory Security -Path $OU
Write-Output "Created group: $Group."
}

0 comments on commit 60aba38

Please sign in to comment.