Active Directory Attributes Tool
Overview
The Active Directory Agent comes with a tool to retrieve attributes on individual users. You can use the below tools to find what attributes hold what data.
Retrieve All Attributes for a User
- Launch Windows PowerShell.
- Use the ‘cd' command to navigate to the AD Agent folder.
- Type 'python ad_attributes.py -u 'xxx' -a all' and hit return. (Where xxx is the individual username you wish to use)
- A list of every available attribute will be output into Windows PowerShell.
Retrieve a Specific Attribute for a User
- Launch Windows PowerShell.
- Use the ‘cd' command to navigate to the AD Agent folder.
- Type 'python ad_attributes.py -u 'xxx' -a 'yyy'' and hit return. (Where xxx is the individual username you wish to use and yyy is the name of the attribute you wish to query).
- The attribute's value will be output into Windows PowerShell.
Retrieve all attributes to a file.
- Launch Windows PowerShell
- Use the ‘cd' command to navigate to the AD Agent folder.
- Type 'python ad_attributes.py -u xxx -a all > yyy.txt' and hit return. (Where xxx is the individual username you wish to use and yyy is the name of the file you wish to create).
- The file will be located in your AD Agent folder.
Needs Review 08/16/2017