Get the App
SLTechnology News&Howtos  ›  Development  › 

How does vbs change the 3389 remote Desktop Port

Shulou Source: shulou.com Published: 2022-06-03 19:37:37 11月12日 Update

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!

Tags: Desktop port slogan input content learning practical deeper success interest practicality practical easy to operate method more friends programs terminals websites channels Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MariaDB Apple Microsoft MySQL vpn