SMPA Setup Guide
December 2, 2022 Scala, Inc. Page | 80
Command Prompt/Windows System Utilities scripting example
Often it can be desirable to set remote access tools such as RDP to a nonstandard TCP port in order to reduce the
chance that a device will be “probed” for remote access vulnerabilities.
By itself, this technique is not a comprehensive/prudent methodology, however it can be a valid
component of a “defense-in-depth” strategy.
Changing the listening TCP port for the Remote Desktop Protocol, (RDP), Terminal Server service and opening an
appropriate new TCP-port in the Windows Firewall:
[This example uses the conventions of the Command Prompt/CMD Script. These utilities can also be called from
other scripting languages with the appropriate changes that need to be mand to launch the commands and
set/pass the variables.]
Where %rdp_port% is the new desired custom Remote Desktop Protocol TCP port number--such as 33123
REG add “hklm\SYSTEM\CurrentControlSet\Control\TerminalServer\WinStations\RDP-Tcp” /v
“PortNumber” /t REG_DWORD /d %rdp_port% /f
Then open that TCP port up on both the Private and Public firewall profiles *AND* set a "source-network" filter
rule so that the connections can only come from a known source network:
NETSH AdvFirewall firewall add rule name="002_ONLY_Allow_CustomPort_RDP_from_NOC" dir=in
localport=%rdp_port% remoteip=10.2.3.0/24 protocol=tcp action=allow profile=any
[Where 10.2.3.0/24 is the sub-net address of the Media Player’s Network Operations Center. (The network location
of its Content Manger Server as well as Administration Workstation PC’s.)]
NOTE: If you set up any set of "Custom Windows Firewall configuration rules”, as a time saver you can export the
complete FW settings from a template unit which can then be imported directly by other systems:
NETSH AdvFirewall export "C:\TEMP\SamplePlayerFirewall-CFG.WFW"
Please see Appendix V: System Configuration Using the Command Line for additional examples of CMD/System
Utility system configuration examples which can form the elements of a more comprehensive Player
Commissioning Script.