Skip to main content

Active Directory

39 commands. Toolkit id ooa.active_directory.

CommandWhat it does
Add users to groupAdd one or more users to a group (no error for users already in it).
Build distinguished nameTurn a readable path such as Corp/Sales/EMEA and a domain into a distinguished name (OU=EMEA,OU=Sales,OU=Corp,DC=corp,DC=example,DC=com), optionally ending with a user, group or computer name.
ConnectSign in to Active Directory or an LDAP server.
Create computerCreate a computer account so a machine can join the domain.
Create groupCreate a security or distribution group.
Create organizational unitCreate an organizational unit.
Create userCreate a user account in an organizational unit, optionally with a first password, and enable it.
Delete computerDelete a computer account.
Delete groupDelete a group (its members are not deleted).
Delete organizational unitDelete an organizational unit; with recursive, everything inside it is deleted too.
Delete userDelete a user account.
Disable userDisable a user account (for example when someone leaves).
DisconnectClose the directory session.
Enable userEnable a disabled user account.
Get computer propertiesRead attributes of a computer account.
Get group membersList the members of a group, optionally including members of nested groups.
Get group propertiesRead attributes of a group.
Get OU propertiesRead attributes of an organizational unit.
Get userRead a user's properties, finding the user by logon name, full name or distinguished name.
Move computerMove a computer account to another organizational unit.
Move groupMove a group to another organizational unit; its members stay.
Move organizational unitMove an organizational unit, with everything in it, under another parent.
Move userMove a user to another organizational unit.
Remove users from groupRemove one or more users from a group (no error for users not in it).
Rename computerRename a computer account (object name and sAMAccountName); the machine itself is not renamed.
Rename groupChange a group's name, optionally also its pre-Windows 2000 name.
Rename organizational unitChange the name of an organizational unit.
Rename userChange the object name of a user (optionally also its display name), its sign-in name (sAMAccountName and the part of the UPN before @), or both.
Reset passwordSet a new password (needs an ldaps:// connection), optionally forcing a change at next sign-in.
Run LDAP queryRun a raw LDAP filter from any starting point and scope and return the entries as a table.
SearchRun an LDAP filter and return matching entries as a table.
Set computer propertyChange one attribute of a computer account, e.g. description or location.
Set group propertyChange one attribute of a group, e.g. description or managedBy.
Set OU propertyChange one attribute of an organizational unit, e.g. description or managedBy.
Set passwordSet a user's password as an administrator (needs an ldaps:// connection), optionally unlocking the account.
Set user propertyChange one attribute of a user, e.g. title or telephoneNumber; values can be replaced, added or removed.
Unlock userUnlock an account locked by failed sign-ins.
Update account optionsTurn account options on or off: enabled, password never expires, and must change password at next sign-in; empty options stay as they are.
Update user detailsChange several details of a user in one step (names, description, office, phone, email, title, department, manager and any other attributes); empty inputs stay as they are.