- use dscl in the terminal on your Mac to query AD
- use Directory Utility.app‘s Directory Editor tool on your Mac to browse AD
- use the Active Directory Users and Computers management tool in Windows
- check your site’s internal documentation (if it exists and is up-to-date)
- automate any of the above
That last bullet point is the most convenient way, particularly because I’m about to tell you how to do it. We’ll use Automator to create a Service that uses AppleScript to get the home directory location of a username via a dscl query, and show the path in a dialog box in both Mac and Windows-friendly formats. As a bonus, we’ll let either of the paths be copied to the clipboard for easy pasting.
Before you start, I should note that this will only work on Macs that meet the following requirements:
- running Mac OS 10.6 or later
- bound to Active Directory
Sound good? Let’s begin.
Note: If you want to skip the tutorial, you can download the completed Automator service here, unzip it, and drop it into your ~/Library/Services folder. To use it, right-click on a username – it has to be showing in a Mac app somewhere as selectable text – then select Get AD Home from the pop-up menu or its Services submenu. Continue reading