How To Add A Member To Active Directory Groups Using PowerShell ...

How to add a member to Active Directory groups using PowerShell scripts?

Read on to know how you can add a member to Active Directory (AD) groups using PowerShell and how you can get it done more easily with ADManager Plus.

Windows PowerShell

Steps to add a member to AD group using powershell :

  • Identify the domain where the AD group, to which members are to be added, is located.
  • Create and compile the script for adding members to the AD group. Execute the script in PowerShell.
  • Sample script for adding a member to an AD group:
  • Copied PS C:\> Add-ADPrincipalGroupMembership -Identity SQLAdmin1 -MemberOf DlgtdAdminsPSOGroup Click to copy entire script
  • To add multiple members to an AD group, you will have to write another script.

ADManager Plus

How to add a member to AD group :

  • Navigate to Management > Group Management > Group Modification > Modify Single Group.
  • Select the Domain and the User Account(s) you wish to add to the AD group. You can even import this list from a CSV file. Click Apply.

Screenshot

Add members to Active Directory Group using ADManager Plus

» Start 30-day Free Trial

Although adding members to AD groups with native tools like PowerShell looks simple, it comes with a few limitations:

  • PowerShell script can be run only from the computers which have the Active Directory Domain Services role installed in them.
  • Need for a new script, in case multiple AD accounts are to be modified.
  • The syntax, parameters and iterations need to be correct. A typo or incorrect syntax might be difficult to spot and rectify, especially when the script is a long one.

ADManager Plus lets you perform the same with a few clicks from its web based GUI console. It also has options for modifying the group membership of multiple users simultaneously with templates or by importing a CSV file containing the modified group membership values.

Manage group memberships in bulk with ADManager Plus.

Get 30-day free trial.

Tag » Add Computer Account To Ad Group Powershell