Using the Query Library
The Active Directory Query Library, introduced in Hyena v11.7, contains numerous examples of advanced directory queries. Use the following examples on how to include directory queries from the Library into Hyena:
Displaying Servers in the Domain
While Active Directory does not have a mechanism to identify computers by their role, there is a way to query the directory for any computer with the word 'server' in the 'OperatingSystem' attribute:
- Select File > Manage Active Directory Queries
- In the upper right of the AD query dialog, change 'Existing Queries for:' to be 'Container/OU Contents'.
- Click the 'Query Library' button (far top right button)
- In the 'Available Queries' list, select the query titled 'Servers'.
- Click 'Import'.
- Click OK to close the AD query dialog.
In Hyena, right click on any container or OU, or to query the entire directory, right click on the main 'Containers/OUs' node under the domain, select 'Query Active Directory' from the menu, and click on the 'Servers' query on the menu.
Displaying only Enabled Users
To filter Active Directory users to display only enabled users:
- Select File > Manage Active Directory Queries
- Click the 'Query Library' button (far top right button)
- In the 'Available Queries' list, select the query titled 'Enabled Users'.
- Click 'Import'.
- Click OK to close the AD query dialog.
In Hyena, right click on the 'Users' node under the domain (left window), select 'Query Active Directory' from the menu, and click on the 'Enabled Users' query on the menu.
Finding Users in a Specific Company
Hyena can be configured to prompt for one or more directory values prior to running a directory query:
- Select File > Manage Active Directory Queries
- Click the 'Query Library' button (far top right button)
- In the 'Available Queries' list, select the query titled 'Users in Specified Company'. Alternately, select one of the other '...specified...' queries if your organization uses one of those attributes, such as Division or Department.
- Click 'Import'.
- Click OK to close the AD query dialog.
In Hyena, right click on the 'Users' node under the domain (left window), select 'Query Active Directory' from the menu, and click on the name of the query that was imported. Hyena will prompt for the value of the attribute(s) filtered for in the query. Note that Active Directory does support wildcards in directory queries as well.
Any query imported from the Library can be fully customized or used as a template for something specific to your environment.
|