mmc wants strange tcp ports

Grey Ink 1 Reputation point
2021-06-10T08:42:14.56+00:00

I tried to connect from Windows Server 2016 to Windows Server 2019 via mmc to see remote Taskscheduler and diskmgmt.
Connection failed
And Get-NetTCPConnection -remoteaddress <ip> shown something like this

for taskscheduler
104135-image.png

for diskmgmt
104171-image.png

Never seen mmc to use such ports before
So what are they used for and why mmc started to use them?

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Leon Laude 86,031 Reputation points
    2021-06-10T09:06:00.71+00:00

    Hi @Grey Ink ,

    Edit: Remote management via the Microsoft Management Console (MMC) and other legacy management tools use DCOM ports, by default DCOM assigns ports dynamically from the TCP port range of 1024 through 65535 on older systems, on newer 49152 to 65535.

    When it's dynamic it could be anything in between and therefore the port used might be different sometimes.

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Best regards,
    Leon


  2. Anonymous
    2021-06-11T03:21:53.96+00:00

    Hi,

    I also get the right ports range in my lab:

    104542-image.png

    Try to restart machine and connect via MMC again, see whether the issue still occur.

    Best Regards,
    Candy

    --------------------------------------------------------------

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


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.