共两个文件
vpn.vbs
set ws=wscript.createobject("wscript.shell")
ws.run "C:\Docume~1\Admini~1\桌面\vpn.bat /start",0
vpn.bat
@echo off
sc config TapiSrv start= auto
sc start TapiSrv
sc config RpcLocator start= auto
sc start RpcLocator
sc config RasMan start= auto
sc start RasMan
sc config Netman start= auto
sc start Netman
%SystemRoot%\System32\rundll32.exe netshell.dll,StartNCW
exit
vpn.vbs
set ws=wscript.createobject("wscript.shell")
ws.run "C:\Docume~1\Admini~1\桌面\vpn.bat /start",0
vpn.bat
@echo off
sc config TapiSrv start= auto
sc start TapiSrv
sc config RpcLocator start= auto
sc start RpcLocator
sc config RasMan start= auto
sc start RasMan
sc config Netman start= auto
sc start Netman
%SystemRoot%\System32\rundll32.exe netshell.dll,StartNCW
exit
