nps內網穿透開機自啟動設置
.bat文件
@echo off
::去除黑窗口
if "%1" == "h" goto begin
mshta vbscript:createobject("wscript.shell").run("%~nx0 h",0)(window.close)&&exit
:begin
::啟動內網穿透,並自動最小化運行
::進去nps文件夾
cd C:\Users\Administrator\Desktop\windows_amd64_client.tar(1)\windows_amd64_client
::復制nps客戶端命令
npc.exe -server=43.1xx.197.x:xxxx -vkey=ixx77xxxxxxwxk29 -type=tcp
pause>nul
::按任意鍵退出
進入計算機管理→添加一個任務,選擇那個.bat為啟動程序,觸發器選在系統啟動時運行