Active Directory – Check communication (portqueryUI)

Overview

With network segmentation, domain controllers often have to configured on a firewall. How do you test, verify and document the functioniality or errors?

You often have to run tests, repeat them and document them. I like to use the Microsoft port query tool for this and add the GUI – graphical user interface – for better visibility.

The tool is available from Microsoft and allows various functions to be executed and run against DNS names of systems or IP addresses.

Download and Installation of portqueryUI

To do this, we download the programme directly from Microsoft via this link or search for ‘portqueryUI’ in the search engine of our choice.

Execute the downloaded file and accept the licence agreement. Then select the path for unpacking the files. In the example, I unzip this into my user directory under Documents on the test server.

portqueryui entpacken der Installationsdateien
portqueryui unzip of the installer files

Configuration

Then set the programme so that the domain controller to be tested is set as the destination IP and select the Domain and Trusts service.

The tool then automatically checks all relevant network ports to the domain controller and reports if certain communication does not work.

PortqueryUI Testen der Verbindung zum Domain Controller
Test the connection to a Domain Controller

Summary on how to check Active Directory communication with Port Query

For me, an unjustly forgotten ‘treasure’ of a tool. I still like to use it and will do so again and again. For more tools to check connectivity take a look at WinMTR here.

Spread the knowledge
Avatar for Andreas Hartig
Andreas Hartig - MVP - Cloud and Datacenter Management, Microsoft Azure

Related Posts

IT Operations Drache looking at Event Logs

Modern Windows Event Viewer – EventLogExpert

The project Windows Event Viewer – EventLogExpert provides a modern open-source toolset that fundamentally improves the way we interact with Windows Event Logs. Since troubleshooting .evtx files is often a…

Spread the knowledge
Read more
IT Developer Dragon red with bronze skin

Windows Terminal and Oh My Posh – personalization for improved coding

Windows Terminal and Oh My Posh are a great combination! In the past we looked here at how to utilize the Windows Terminal in a personalized way to improve usability…

Spread the knowledge
Read more
Winget and IaC SystemEngineerDragon

WinGet and IaC – Take Winget to the next level

WinGet and IaC are maybe your next step to automate your environment. In the past, managing third-party applications on Windows meant 3rd party tools or gathering MSI installers on network…

Spread the knowledge
Read more
Dragon IT Operations logfile tailing using Klogg

Tail for log files with Windows – 2026 Edition

I view a lot of log files—probably more than I’d like to admit. Whether it’s troubleshooting a hybrid infrastructure issue or debugging a cloud deployment, I always look for the…

Spread the knowledge
Read more
dragon it system engineer grc benchmark

Windows DNS Performance Testing

DNS issues don’t always show up as clear outages. Often they show up as annoying browser behaviour like “random delays on first page load”, “sometimes it works, sometimes it spins”,…

Spread the knowledge
Read more
IT Security Dragon reading Windows Event Logs

Windows Server Event Log and Event Log Policies

Windows Server Event Log for most teams are only used when something already smells like incident:💥 DC misbehaving,💥 file server “mysteriously slow”,💥 SOC asking for “all the logs you have…

Spread the knowledge
Read more