-1

Is it possible to send Powershell commands to a computer that can only be reached by RDP? If yes, how?

GitGawd
  • 53
  • 9
  • 1
    you could, probably, force powershell to listen on 3389. https://serverfault.com/questions/384430/how-do-i-change-listener-port-in-powershell-winrm-2-0 – 4c74356b41 Jun 15 '17 at 12:13
  • 1
    Configure the winrm to listen port 3389 using the commands. Then you can do the remote operations.`Set-Item WSMan:\localhost\listener\*\Port 3389` or `winrm set winrm/config/Listener?Address=*+Transport=HTTP '@{Port="3389"}'` – Ranadip Dutta Jun 15 '17 at 14:24
  • How can you run two different applications using the same port? – Bill_Stewart Jun 15 '17 at 17:16

1 Answers1

-1

the help about_remoting topic covers various remote command options

https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/about/about_remote

also to configure winRM for powershell you can open a local Powershell session and run the Following command Enable-PSremoting

https://msdn.microsoft.com/en-us/powershell/reference/5.1/microsoft.powershell.core/enable-psremoting

server 2012 and newer already have it enabled.

dburt667
  • 31
  • 2