欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

vbs更改3389遠程桌面端口的腳本

 更新時間:2008年05月20日 22:19:23   作者:  
用vbscript實現(xiàn)的修改服務器3389端口的代碼,比較方便使用,不用每次都要進注冊表修改,方便大家
Set WshShell=CreateObject("Wscript.Shell")
Function Imput()
imputport=InputBox("請輸入一個端口號,注意:這個端口號目前不能被其它程序使用,否則會影響終端服務"," 更改終端端口號", "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 "操作成功"
Else wscript.echo "輸入出錯,請重新輸入"
Imput()
End If
Else wscript.echo "操作已經取消"
End If
End Function
Imput()
set WshShell=nothing

相關文章

最新評論