
You can change the RDP port number on a remote computer. $PCs = Get-ADComputer -Filter * -SearchBase "CN=IT,CN=Computers,CN=NY,DC=woshub,DC=com" If you need to change the RDP number remotely on multiple computers in your AD domain (in the specific OU), use the following script (you can get a list of computers in the OU using the Get-ADComputer cmdlet): Invoke-Command -ComputerName wksname112 -ScriptBlock To do this, you need to enable WinRM on the remote computer, and then you can use the Invoke-Command cmdlet to connect to the computer: Invoke-Command -ComputerName $PC.TCPView is a freely available Windows tool that allow you to view all the different TCP and UDP sockets on your computer, plus the details of their associated IP addresses. You can simply use a menu or toolbar button to toggle through the different displays. This is especially useful if you're a server administrator. TCPView will display the IP address of every known TCP connection on your computer. It also provides details about the port number, source port, and destination port for every packet, so you'll be able to easily understand the protocols in use on your system. One of the key things you need to remember about using TCPView with your Linux operating system is to always make sure that it's used with the Sysinternals utilities and not the built-in networking module in your distribution.

The built-in network subsystem doesn't include any support for viewing TCP connections and therefore won't display the data you want. On the other hand, Sysinternals' networking utility has a feature that allows you to specify an arbitrary number of connection 'stuck' ports.

You can then open up TCPView to view the names of the sockets associated with those ports, plus the status of each one. But when you use the command-line version of the program, you can't view the names of the TCP sockets and thus won't be able to select them with ease.
