默认分类

n2n edge客户端自动部署

自动下载openvpn并安装taptun

$sourceUrl = "http://www.moonnn.top:82/filerun/tap-windows/OpenVPN-2.6.12-I001-amd64.msi"
$destinationPath = "C:\Users\Public\OpenVPN.msi"
Start-BitsTransfer -Source $sourceUrl -Destination $destinationPath
C:\Users\Public\OpenVPN.msi /passive #无人参与模式 - 只显示进度栏        

下载edge.exe 及配置文件edge.conf 并配置任务计划开机自动运行

$sourceUrl = "http://www.moonnn.top:82/filerun/n2n/edge.exe"
$destinationPath = "C:\Users\Public\edge.exe"
Start-BitsTransfer -Source $sourceUrl -Destination $destinationPath

$sourceUrl = "http://www.moonnn.top:82/filerun/n2n/edge.conf"
$destinationPath = "C:\Users\Public\edge.conf"
Start-BitsTransfer -Source $sourceUrl -Destination $destinationPath

schtasks /create /sc onstart /delay 0002:00 /tn "StartEdgeOnBoot" /tr "C:\Users\Public\edge.exe C:\Users\Public\edge.conf" /ru "SYSTEM" /rl HIGHEST /it
schtasks /run /tn  "StartEdgeOnBoot"

回复

  1. wjrrlllllp wjrrlllllp
    Sogo 10

    叼茂SEO.bfbikes.com

  2. olkqhpviww olkqhpviww
    Sogo 10

    你的才华让人惊叹,你是我的榜样。 https://www.4006400989.com/qyvideo/47359.html

  3. dpioamskje dpioamskje
    Sogo 10

    《大公民》剧情片高清在线免费观看:https://www.jgz518.com/xingkong/114781.html

  4. bacbaneeuv bacbaneeuv
    Sogo 10

    你的文章充满了创意,真是让人惊喜。 https://www.yonboz.com/video/40887.html

  5. mrzfmflwnt mrzfmflwnt
    Sogo 10

    你的文章充满了创意,真是让人惊喜。 http://www.55baobei.com/Vts1KfTgVH.html

  6. tbiamewohh tbiamewohh
    Sogo 10

    《名利游戏》海外剧高清在线免费观看:https://www.jgz518.com/xingkong/42664.html

This is just a placeholder img.