Skip to content
Menu
The Lonely Administrator
  • PowerShell Tips & Tricks
  • Books & Training
  • Essential PowerShell Learning Resources
  • Privacy Policy
  • About Me
The Lonely Administrator

Active Directory Reporting Tools Released

Posted on March 29, 2021March 29, 2021

Over the weekend, I published the 1.0 version of the ADReportingTools module to the PowerShell Gallery. I first wrote about this module a few weeks ago. I've made a number of changes since then and felt the module was ready for an official release. I'm continuing to add new features so you'll want to keep an eye on the PowerShell Gallery for updates. Here are a few highlights of the 1.0 release.

Manage and Report Active Directory, Exchange and Microsoft 365 with
ManageEngine ADManager Plus - Download Free Trial

Exclusive offer on ADManager Plus for US and UK regions. Claim now!

Get-ADComputerReport

I added a command to get computer account information. You can get all computers. If you are running in a PowerShell console, domain controllers and member servers will be highlighted with an ANSI sequence.

Or you can filter between Server or Desktop. The command uses a default format view, but there is other information you can use.

Unfortunately, even though I added the command I forgot to write the help file. That will be coming in v1.2.0.

Get-NTDSInfo

The module includes a few commands related to Active Directory backups. One command is Get-NTDSInfo. This uses PowerShell remoting to get information about the ntds.dit file and edb log files on a domain controller.

The LogCount is the number of temp edb log files. I high number might indicate you are overdue for a backup. You can also use this command to compare ntds.dit files between domain controllers.

Get-ADDepartment

This command will show you all members of a given department.

Disabled accounts will be shown in Red, if running in the PowerShell console. There is also a custom view if you are using the Manager property.

$ADReportingHash

The Get-ADDepartment command as an autocompleter for the department. The module will get a unique list of departments in your domain. But because this might take a while to build, the value is stored in a hashtable variable called $ADReportingHash.

When you import the module, a temporary runspace is kicked off to build the department list. It also gets a list of all domain controllers. The runspace uses a synchronized hashtable to surface information to your session. I expect to use this feature more as I add functionality.

Open-ADReportingToolsHelp

The last new feature is a PDF version of all module documentation, including the Github repository README.md file. The module already has a command, Get-ADReportingTools, to list all the commands. Now you can also run Open-ADReportingToolsHelp to launch a PDF file.

PowerShell will open the file using the application associated with PDF files.

Try for Yourself

You can install ADReportingTools from the PowerShell Gallery. Or check out the module's repository. Feel free to join the Discussion section.


Behind the PowerShell Pipeline

Share this:

  • Click to share on X (Opens in new window) X
  • Click to share on Facebook (Opens in new window) Facebook
  • Click to share on Mastodon (Opens in new window) Mastodon
  • Click to share on LinkedIn (Opens in new window) LinkedIn
  • Click to share on Pocket (Opens in new window) Pocket
  • Click to share on Reddit (Opens in new window) Reddit
  • Click to print (Opens in new window) Print
  • Click to email a link to a friend (Opens in new window) Email

Like this:

Like Loading...

Related

reports

Powered by Buttondown.

Join me on Mastodon

The PowerShell Practice Primer
Learn PowerShell in a Month of Lunches Fourth edition


Get More PowerShell Books

Other Online Content

github



PluralSightAuthor

Active Directory ADSI Automation Backup Books CIM CLI conferences console Friday Fun FridayFun Function functions Get-WMIObject GitHub hashtable HTML Hyper-V Iron Scripter ISE Measure-Object module modules MrRoboto new-object objects Out-Gridview Pipeline PowerShell PowerShell ISE Profile prompt Registry Regular Expressions remoting SAPIEN ScriptBlock Scripting Techmentor Training VBScript WMI WPF Write-Host xml

©2025 The Lonely Administrator | Powered by SuperbThemes!
%d