Tips for finding Knowledge Articles

  • - Enter just a few key words related to your question or problem
  • - Add Key words to refine your search as necessary
  • - Do not use punctuation
  • - Search is not case sensitive
  • - Avoid non-descriptive filler words like "how", "the", "what", etc.
  • - If you do not find what you are looking for the first time,reduce the number of key words you enter and try searching again.
  • - Minimum supported Internet Explorer version is IE9
Home  >
article

KB-4219: How to add a user/computer object to a group using ADEdit?

Authentication Service ,  

10 March,20 at 06:51 AM

Question:

How can an user / computer object be added to an Active Directory group using ADEdit?


Answer:

The recommended way to add an user / computer to an AD group is to use the existing add_user_to_group function in ADEdit.
 
To add an user:

add_user_to_group user group

To add a computer:

add_user_to_group computer group


To use this function, the ade_lib package needs to be loaded first.
 
> package require ade_lib

Note: Failure to load the ade_lib package, will result in an invalid command name error.


If adding a computer to a group, the computer account should be in the following format:
 
computer$@domain

For example, to add computer engcen5 to group MFA Computers, the following commands could be run in the adedit console:
 
>bind centrifyimage.vms <domainAccount>

>package require ade_lib

>add_user_to_group engcen5$@centrifyimage.vms "CN=MFA Computers,OU=Groups,DC=centrifyimage,DC=vms"

Still have questions? Click here to log a technical support case, or collaborate with your peers in Centrify's Online Community.