Admodcmd for Adding or Modification of Active Directory attributes.
Admodcmd Active Directory Bulk Modify Tool (Command Line Version) – admodify.exe is a GUI based tool for the same command.
admodcmd [-dn BaseDN] [-p pagesize] [-s] [-server servername] [-f LDAPFilter] [modification]
|-dn BaseDN||Base DN to begin the LDAP query.|
|modification||Modification to perform:
Exchange Related Attributes | Terminal Server Attributes
User Account Settings | Mailbox Rights | Custom Attributes
|-p pagesize||LDAP Page size to use for query.|
|-s||Perform a subtree search (Default is one level search)|
|-server servername||The server to make the changes to.by default, changes are made locally if on a DC else DNS is used to find a DC.|
|-f LDAPFilter||A Valid LDAP filter to use when enumerating objects
The default filter is (objectClass=user).
Changes made with ADModcmd can be undone, as long as the xml log file that logged the changes still exists. These log files are typically located in the same folder as the admodify executable.
Syntax for Undo
admodcmd [-dn BaseDN] [-p pagesize] [-s] [-server servername] -undo logfilename -server servername]
logfilename – The log file that contains the changes to be undone.
Servername – The DC to write the changes to. by default, changes are made locally if on a DC else DNS is used to find a DC. For information on users that were skipped during an undo process, refer to the undo.log file.