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

  1. Launch Windows PowerShell.
  2. Use the ‘cd' command to navigate to the AD Agent folder.
  3. Type 'python ad_attributes.py -u 'xxx' -a all' and hit return. (Where xxx is the individual username you wish to use)
  4. A list of every available attribute will be output into Windows PowerShell.

Retrieve a Specific Attribute for a User

  1. Launch Windows PowerShell.
  2. Use the ‘cd' command to navigate to the AD Agent folder.
  3. 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).
  4. The attribute's value will be output into Windows PowerShell.

Retrieve all attributes to a file.

  1. Launch Windows PowerShell
  2. Use the ‘cd' command to navigate to the AD Agent folder.
  3. 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).
  4. The file will be located in your AD Agent folder.

Needs Review 08/16/2017