We’re in the middle of a blizzard in the northeast today and I’m trying to help a remote user connect into her network. However, I believe she has a custom RDP port configured and I need to know which one it is. I can get into a server on her network, but can’t RDP to her system without the port number. I also can’t connect to her registry remotely.<\/p>\n
I can, however, connect to her services. I turned on her Remote Registry Service, but still can’t get into the registry. Any thoughts? Are there any other services that need to be started? Is this even possible?<\/p>\n
It’s a Windows 7 computer on a domain.<\/p>","upvoteCount":2,"answerCount":8,"datePublished":"2018-01-04T16:20:58.000Z","author":{"@type":"Person","name":"ronaldmacdonald","url":"https://community.spiceworks.com/u/ronaldmacdonald"},"suggestedAnswer":[{"@type":"Answer","text":"
We’re in the middle of a blizzard in the northeast today and I’m trying to help a remote user connect into her network. However, I believe she has a custom RDP port configured and I need to know which one it is. I can get into a server on her network, but can’t RDP to her system without the port number. I also can’t connect to her registry remotely.<\/p>\n
I can, however, connect to her services. I turned on her Remote Registry Service, but still can’t get into the registry. Any thoughts? Are there any other services that need to be started? Is this even possible?<\/p>\n
It’s a Windows 7 computer on a domain.<\/p>","upvoteCount":2,"datePublished":"2018-01-04T16:20:58.000Z","url":"https://community.spiceworks.com/t/connect-remote-registry-remotely/626843/1","author":{"@type":"Person","name":"ronaldmacdonald","url":"https://community.spiceworks.com/u/ronaldmacdonald"}},{"@type":"Answer","text":"
Can I ask why they have a custom RDP port?<\/p>","upvoteCount":0,"datePublished":"2018-01-04T16:26:49.000Z","url":"https://community.spiceworks.com/t/connect-remote-registry-remotely/626843/2","author":{"@type":"Person","name":"l0st0ne","url":"https://community.spiceworks.com/u/l0st0ne"}},{"@type":"Answer","text":"
They had port forwarding set up at one point.<\/p>","upvoteCount":0,"datePublished":"2018-01-04T16:30:10.000Z","url":"https://community.spiceworks.com/t/connect-remote-registry-remotely/626843/3","author":{"@type":"Person","name":"ronaldmacdonald","url":"https://community.spiceworks.com/u/ronaldmacdonald"}},{"@type":"Answer","text":"
use powershell and find the port number<\/p>\n
$computers=\"computername\"\nForeach ($Computer in $Computers) {\n$RegBase = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine,$Computer)\n$Reg=$RegBase.OpenSubKey(‘SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp’).GetValue(‘PortNumber’)\n}\n$value +=New-Object -TypeName PSCustomObject -Property @{\nComputerName = $($Computer)\nPort=$reg\n}\n$value |select computername,port\n<\/code><\/pre>","upvoteCount":1,"datePublished":"2018-01-04T17:26:18.000Z","url":"https://community.spiceworks.com/t/connect-remote-registry-remotely/626843/4","author":{"@type":"Person","name":"jitensh","url":"https://community.spiceworks.com/u/jitensh"}},{"@type":"Answer","text":"Lil correction in my script<\/p>\n
$computers=\"computer1\",\"Computer2\"\n$result=Foreach ($Computer in $Computers) \n{\n$RegBase = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey([Microsoft.Win32.RegistryHive]::LocalMachine,$Computer)\n$Reg=$RegBase.OpenSubKey(‘SYSTEM\\CurrentControlSet\\Control\\Terminal Server\\WinStations\\RDP-Tcp’).GetValue(‘PortNumber’)\nNew-Object -TypeName PSCustomObject -Property @{\nComputerName = $Computer\nPort=$reg\n}\n}\n\n$result|select computername,port\n<\/code><\/pre>","upvoteCount":1,"datePublished":"2018-01-04T19:44:46.000Z","url":"https://community.spiceworks.com/t/connect-remote-registry-remotely/626843/5","author":{"@type":"Person","name":"jitensh","url":"https://community.spiceworks.com/u/jitensh"}},{"@type":"Answer","text":"thanks<\/p>","upvoteCount":0,"datePublished":"2018-01-04T23:07:08.000Z","url":"https://community.spiceworks.com/t/connect-remote-registry-remotely/626843/6","author":{"@type":"Person","name":"ronaldmacdonald","url":"https://community.spiceworks.com/u/ronaldmacdonald"}},{"@type":"Answer","text":"
if its working as expected please mark as best answer and close it.<\/p>","upvoteCount":0,"datePublished":"2018-01-05T00:21:29.000Z","url":"https://community.spiceworks.com/t/connect-remote-registry-remotely/626843/7","author":{"@type":"Person","name":"jitensh","url":"https://community.spiceworks.com/u/jitensh"}},{"@type":"Answer","text":"
Make sure to open the firewall remotely as well to allow connectivity.<\/p>","upvoteCount":0,"datePublished":"2018-01-05T06:50:00.000Z","url":"https://community.spiceworks.com/t/connect-remote-registry-remotely/626843/8","author":{"@type":"Person","name":"dbeato","url":"https://community.spiceworks.com/u/dbeato"}}]}}