Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does vbs change the 3389 remote Desktop Port

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

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!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report