Monitor tcp/5985, 5986 ports accessibility on all servers from Windows Admin Center/Bastion Hosts with SCOM 2022

Bojan Zivkovic 526 Reputation points
2025-02-02T16:23:17.2+00:00

Hi, I have a bunch of PS code-based reports, ad-hoc scripts and custom GUI tools made in PS Studio relying on PowerShell remoting thus tcp/5985, 5986 ports being accessible (on all servers) from Windows Admin Center/Bastion Hosts. What would be the best way of monitoring whether these ports are accessible on all servers in the forest from Windows Admin Center/Bastion Hosts (as source systems)?

Windows Admin Center server:ANY --> all servers:5985 (tcp)

Windows Admin Center server:ANY --> all servers:5986 (tcp)

Bastion Host servers:ANY --> all servers:5985 (tcp)

Bastion Host servers:ANY --> all servers:5986 (tcp)

Operations Manager
Operations Manager
A family of System Center products that provide infrastructure monitoring, help ensure the predictable performance and availability of vital applications, and offer comprehensive monitoring for datacenters and cloud, both private and public.
1,523 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. XinGuo-MSFT 20,801 Reputation points
    2025-02-03T01:53:25.5933333+00:00

    Hi,

    To monitor the accessibility of TCP ports 5985 and 5986 on all servers from Windows Admin Center and Bastion Hosts using SCOM 2022, you can use the TCP Port template in SCOM. This template allows you to monitor the availability of applications accessible over TCP, including verifying that specific ports are reachable from defined watcher nodes.

    Here's a step-by-step approach:

    Define Watcher Nodes: Set up your Windows Admin Center and Bastion Hosts as watcher nodes in SCOM. Each watcher node will attempt to connect to the specified ports on the target servers.

    Create TCP Port Monitors:

    • Use the TCP Port template to create monitors for ports 5985 and 5986.
    • Configure the monitors to check the connectivity from the watcher nodes to the target servers on these ports.

    Configure Monitoring Intervals: Set the intervals at which the monitors will check the port accessibility. This can help you detect any intermittent connectivity issues.

    TCP port template

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.