How does vbs change the 3389 remote Desktop Port
This article mainly explains "how to change 3389 remote desktop port vbs", interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let Xiaobian take you to learn "how to change 3389 remote desktop port vbs"!
Set WshShell=CreateObject("Wscript.Shell")
Function Imput()
imputport=InputBox("Please enter a port number, note: this port number cannot be used by other programs at present, otherwise it will affect terminal service","Change terminal port number", "3389", 100, 100)
If imputport"" Then
If IsNumeric(imputport) Then
WshShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\Wds\rdpwd\Tds\tcp\PortNumber",imputport,"REG_DWORD"
WshShell.RegWrite "HKLM\SYSTEM\CurrentControlSet\Control\Terminal Server\WinStations\RDP-Tcp\PortNumber",imputport,"REG_DWORD"
wscript.echo "Operation successful"
Else wscript.echo "Error, please re-enter"
Imput()
End If
Else wscript.echo "Operation cancelled"
End If
End Function
Imput()
set WshShell=nothing
At this point, I believe that everyone has a deeper understanding of "how to change 3389 remote desktop port vbs," may wish to actually operate it! Here is the website, more related content can enter the relevant channels for inquiry, pay attention to us, continue to learn!