广州明生医药有限公司


vbs更改3389远程桌面端口的脚本

网络编程 vbs更改3389远程桌面端口的脚本 06-22
Set WshShell=CreateObject("Wscript.Shell")
Function Imput()
imputport=InputBox("请输入一个端口号,注意:这个端口号目前不能被其它程序使用,否则会影响终端服务"," 更改终端端口号", "3389", 100, 100)
If imputport<>"" Then
If IsNumeric(imputport) Then

WshShell.RegWrite "HKLMSYSTEMCurrentControlSetControlTerminal ServerWdsrdpwdTdstcpPortNumber",imputport,"REG_DWORD"
WshShell.RegWrite "HKLMSYSTEMCurrentControlSetControlTerminal ServerWinStationsRDP-TcpPortNumber",imputport,"REG_DWORD"
wscript.echo "操作成功"
Else wscript.echo "输入出错,请重新输入"
Imput()
End If
Else wscript.echo "操作已经取消"
End If
End Function
Imput()
set WshShell=nothing

用vbs实现的强制杀进程的脚本
黑人必会!强制杀进程!对付杀毒软件啊'备注:vbs强制关闭程序'防止出现错误OnErrorResumeNext'vbs代码开始----------------------------------------------subClose_Process(

用VBS脚本实现更换Windows Xp序列号的代码
ONERRORRESUMENEXTDimVOL_PROD_KEYifWscript.arguments.count1thenVOL_PROD_KEY=InputBox("使用说明:"&vbCr&vbCr&"本程序将自动替换你当前Windows的序列号,通过微软验证完全正版。"

vbs实现右键菜单中添加CMD HERE
右键菜单中添加CMDHERESetWshShell=CreateObject("Wscript.Shell")WshShell.RegWrite"HKEY_LOCAL_MACHINESoftwareCLASSESFoldershellcmdhere",""WshShell.RegWrite"HKEY_LOCAL_MACHINESoftwareCLASSE


编辑:广州明生医药有限公司

标签:右键,端口号,终端,程序,序列号