Collecting Active Directory information

In a previous article we outlined the various data points we require when we're conducting one of our software license review services for a client (SQL Server License Optimization, Microsoft License Review, Microsoft EA Optimization etc) We generally prefer to use our own on-line SAM platform to gather software and hardware inventory for these projects, however we have also published many of the scripts that our on-line platform uses so clients and non clients can gather this data themselves. The SAM Gold Toolkit is available on Github.

In a series of articles, we'll look at how to use the SAM Gold Toolkit scripts to gather data from Active Directory, Hyper-V, VMware vSphere & vCenter, XenServer, SQL Server, Exchange Server & other enterprise server products. Today it's AD!

As a quick reminder, this is the info we generally ask clients to gather from Active Directory if they are taking responsibility for inventory collection...

Active Directory Export (Device) - For Each Domain
Distinguished Name
Device Name
Domain Name (FQDN)
Domain Name (NetBIOS)
Operating System
Operating System Service Pack
Operating System Version
Last Log On
Active Directory Export (User) - For Each Domain
Distinguished Name
User Name
Domain Name (FQDN)
Domain Name (NetBIOS)
Display Name
Email Address
Physical Delivery Office Name
Last Log On
Our Active Directory script collects all these details and a lot more. For an up-to-date, detailed description of all the information it collects, you can view it's help info by calling the standard PowerShell help function...

Next week - Hypervisors


Jon is a data and automation nut. Armed with his weapons of choice - c++, c# and PowerShell and with his black belt training in Microsoft Excel, there is no task too small or too simple for Jon to confuse and complicate by attempting to automate it!

Jon is a founding partner of Sam360.

Leave a Comment

Free Trial. Get Started in 60 Seconds.

Trusted by 3,000+ businesses in over 40 countries

  • Finally we've found a system that tells us what's installed, what requires a license and what's actually used. I wish I had this years ago!

    William Farrell, IT Manager, Killeshal,
Our Clients

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.