Close Menu
    Facebook X (Twitter) Instagram
    Prajwal.orgPrajwal.org
    • Home
    • SCCM

      CVE-2025-47178 for Configuration Manager

      July 12, 2025

      SCCM 2503 Upgrade New Features and Hotfixes

      April 30, 2025

      Create a Device Collection for SCCM 2409 Clients

      February 27, 2025

      Device Collection for SCCM 2403 Clients

      January 22, 2025

      SCCM 2403 Hotfixes, Upgrade and New Features

      January 21, 2025
    • Intune

      New Features in Intune 2502 release (February 2025)

      February 27, 2025

      Intune Service Release 2406 New Features (June 2024)

      June 23, 2024

      Microsoft Intune 2405 New Features (May 2024)

      May 29, 2024

      How to Disable Android Enterprise system app in Intune

      May 22, 2024

      Intune ends support for Android device administrator

      January 22, 2025
    • Windows 11

      How to Install WSUS Console on Windows 11

      January 22, 2025

      How to enable memory integrity using Group Policy

      January 22, 2025

      Uninstall Mail and Calendar Apps using PowerShell

      January 22, 2025

      How to Create Batch File to Delete Temp Files

      January 22, 2025

      How to Change RDP Port using PowerShell

      January 22, 2025
    • Contact
    Prajwal.orgPrajwal.org
    Home » Use CMPivot Query to Find RDP Port Number
    SCCM

    Use CMPivot Query to Find RDP Port Number

    Quickly use the CMPivot to find the RDP port of multiple Windows computers managed by SCCM
    January 22, 20259,101 Views

    In this post, you’ll learn how to use CMPivot query to find RDP port number using SCCM. The RDP port is 3389 by default, but you can use a CMPivot query to determine the port number if it has changed.

    When you connect to a computer (either a Windows client or Windows Server) through the Remote Desktop client, the Remote Desktop feature on your computer “hears” the connection request through a defined listening port (3389 by default). You can change that listening port on Windows computers by modifying the registry.

    There are multiple ways to change the RDP port number on remote Windows computers, such as registry, PowerShell, or CMPivot. When you want to determine the RDP port that is configured on any given computer, you can use a CMPivot query because it is quick and accurate.

    Use CMPivot Query to Find RDP Port Number

    Perform the following steps to find the RDP port number using the CMPivot query in SCCM:

    • Launch the ConfigMgr console and go to Assets and Compliance > Overview > Device Collections.
    • Right-click on the device collection and select Start CMPivot.
    • Run the below CMPivot query to find the RDP port of all the devices within the device collection.
    Registry('HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp') | where Property == 'PortNumber'
    Use CMPivot Query to Find RDP Port Number
    Use CMPivot Query to Find RDP Port Number

    In the CMPivot query output, the value field shows the RDP port number. There is an export option in the CMPivot query window where you can export the RDP port numbers of computers to an external file.

    Share. Facebook Twitter Pinterest LinkedIn Email
    Previous ArticleManually Run the SCCM ADR from the Console
    Next Article SCCM 2303 Upgrade, Hotfixes, New Features

    Related Posts

    SCCM

    CVE-2025-47178 for Configuration Manager

    July 12, 2025
    SCCM

    SCCM 2503 Upgrade New Features and Hotfixes

    April 30, 2025
    SCCM

    Create a Device Collection for SCCM 2409 Clients

    February 27, 2025
    Latest Guides

    CVE-2025-47178 for Configuration Manager

    SCCM 2503 Upgrade New Features and Hotfixes

    New Features in Intune 2502 release (February 2025)

    Create a Device Collection for SCCM 2409 Clients

    Popular Guides

    Uninstall Snipping Tool using PowerShell

    Updated:January 22, 2025

    How to Manually Install SCCM Client Agent

    Updated:January 22, 2025

    How to Create Batch File to Delete Temp Files

    Updated:January 22, 2025

    Disable Driver Signature Enforcement using CMD Prompt

    Updated:January 22, 2025
    Trending Posts

    SCCM Client Cache Cleanup Post Application Deployment

    Updated:January 22, 2025

    Download ConfigMgr Technical Preview 2002

    Updated:January 22, 2025

    How to Enable Telnet using PowerShell on Windows 11

    Updated:January 22, 2025

    How to Re-Distribute Failed Packages in SCCM

    Updated:January 22, 2025
    © 2025 Prajwal.org | Privacy Policy

    Type above and press Enter to search. Press Esc to cancel.