Skip to content

Instantly share code, notes, and snippets.

@JuniYadi
Created March 27, 2021 09:53
Show Gist options
  • Save JuniYadi/bbe225e5ae5c7a931bbe06a3a4d9e565 to your computer and use it in GitHub Desktop.
Save JuniYadi/bbe225e5ae5c7a931bbe06a3a4d9e565 to your computer and use it in GitHub Desktop.
Get-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp' -name "PortNumber"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment