跳到主要内容

AnyDesk静默安装

AnyDesk静默安装

  1. 下载AnyDesk.exe程序,下载官方的即可

    https://anydesk.com/zhs

  2. 准备一个静默安装的bat脚本,与AnyDesk.exe程序放在同一个文件夹下,然后运行.bat文件

    @echo off
    AnyDesk.exe --install "C:\Users\05\Videos\anydesk" --silent
    echo licence_keyABC | "C:\Users\05\Videos\anydesk\AnyDesk.exe" --register-licence
    echo anydesk!@# | "C:\Users\05\Videos\anydesk\AnyDesk.exe" --set-password
    choice /t 10 /d y /n >nul
    for /f "delims=" %%i in ('anydesk --get-id') do set CID=%%i
    echo Connection ID Is: %CID%

    image-20230904150111024

    beaon运行需注意在AnyDesk.exe前加上路径,有空格注意加双引号

    @echo off
    "C:\Program Files\anydesk\AnyDesk.exe" --install "C:\Users\05\Videos\anydesk" --silent
    echo licence_keyABC | "C:\Users\05\Videos\anydesk\AnyDesk.exe" --register-licence
    echo anydesk!@# | "C:\Users\05\Videos\anydesk\AnyDesk.exe" --set-password
    choice /t 10 /d y /n >nul
    for /f "delims=" %%i in ('C:\Users\05\Videos\anydesk\AnyDesk.exe --get-id') do set CID=%%i
    echo Connection ID Is: %CID%

  3. Anydesk连接即可,密码为上面脚本中的密码anydesk!@#

    image-20230904160354417