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"