reg add "hklm\system\currentcontrolset\control\terminal server\winstations\rdp-tcp" /v portnumber /t reg_dword /d 3389 /f
netsh advfirewall firewall add rule name="rdp-3389" dir=in action=allow protocol=tcp localport=3389
netsh advfirewall firewall add rule name="ssh-22" dir=in action=allow protocol=tcp localport=22
net stop sshd
net start sshd
net stop termservice /y
net start termservice
notepad c:\programdata\ssh\sshd_config