Skip to content

Commit

Permalink
Create Add-User-to-Group.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
rswio authored Jan 26, 2025
1 parent 46dd500 commit 087c6ee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Active Directory/Add-User-to-Group.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Replace the $GroupName and $SamAccountNam
Add-ADGroupMember -Identity $GroupName -Members $SamAccountName

# Example
Add-ADGroupMember -Identity "IT-Admins" -Members "john.doe"

0 comments on commit 087c6ee

Please sign in to comment.