Skip to content

asarejohn001/ActiveDirectorySecGroup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Active Directory Security Group

Active Directory security groups can provide an efficient way to assign access to resources on your network.

Add Users to an Active Directory Security Group

Using the addMemberToSecGrp.ps1, you can add multiple users to an active directory sercurity group. The script will

  1. Retrieve an user's email address from a provided CSV
  2. It will then use the email address to find the SamAccountName from Active Directory
  3. Use the Add-ADGroupMember to add the SamAccount to the specified group

Important

Make sure to edit the script to fit your need.

Remove Users from an Active Directory Security Group

Using the removeMemberFromScGrp.ps1, you can remove multiple users from an active directory security group. The script will:

  1. Retrieve user email address from CSV
  2. Use the email address to search through Active Directory for the SamAccountName associated with the email address
  3. Check if the SamAccountName exist
  4. Use Remove-ADGroupMember to remove the SamAccountName from the Active Directory security group

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published