# 批次安裝

使用組織註冊權杖批次安裝和審批 Beeuni Capture。

Canonical page: https://beeuni.ai/docs/zh-TW/capture/rollout

先開啟組織的 Capture，設定錄製範圍、保留時間、排除項，以及成員看到的錄製通知，再建立註冊權杖。按需限制郵箱網域、裝置數量和有效期，並選擇是否逐臺審批。權杖只顯示一次，請像密碼一樣保管。

## 以管理員身分安裝

Windows:

以管理員身分開啟 **命令提示符**，貼上下方命令。它會下載安裝包，等待靜默安裝完成並檢查服務；失敗時可檢視 `%TEMP%\BeeuniCapture-install.log`。不要在 PowerShell 中直接貼上這條命令。

Windows 10 缺少 WebView2 Runtime 時，安裝包會自動安裝。服務暫時無法啟動不會導致安裝回滾；Windows 也會在啟動約一分鐘後啟動服務。不帶註冊引數開啟安裝包時，安裝後會開啟應用供使用者登入。

```bat
curl.exe -fsSL -o "%TEMP%\BeeuniCapture-x64.msi" https://github.com/BeeuniLab/beeuni-cli/releases/latest/download/BeeuniCapture-x64.msi && start /wait msiexec /i "%TEMP%\BeeuniCapture-x64.msi" /qn /l*v "%TEMP%\BeeuniCapture-install.log" BEEUNI_URL=https://api.beeuni.ai ENROLLMENT_TOKEN=beeuni_enr_... && sc query BeeuniCapture >nul 2>&1 && echo Beeuni Capture installed. It records from the next Windows sign-in. || echo Install failed. Log: "%TEMP%\BeeuniCapture-install.log"
```

Intune:

```bat
msiexec /i BeeuniCapture-x64.msi /qn BEEUNI_URL=https://api.beeuni.ai ENROLLMENT_TOKEN=beeuni_enr_...
```

```powershell
sc.exe query BeeuniCapture
Get-Process beeuni-capture | Select-Object Id, SessionId
```

macOS:

```bash
sudo mkdir -p "/Library/Application Support/Beeuni/Capture"
echo '{"url":"https://api.beeuni.ai","enrollment_token":"beeuni_enr_..."}' | sudo tee "/Library/Application Support/Beeuni/Capture/config.json" >/dev/null
sudo chmod 600 "/Library/Application Support/Beeuni/Capture/config.json"
curl -fsSL -o /tmp/BeeuniCapture-universal.pkg https://github.com/BeeuniLab/beeuni-cli/releases/latest/download/BeeuniCapture-universal.pkg && sudo installer -pkg /tmp/BeeuniCapture-universal.pkg -target /
```

Linux:

```bash
sudo install -d -m 755 /etc/beeuni
echo '{"url":"https://api.beeuni.ai","enrollment_token":"beeuni_enr_..."}' | sudo tee /etc/beeuni/capture.json >/dev/null
sudo chmod 600 /etc/beeuni/capture.json
curl -fsSL -o /tmp/beeuni-capture_amd64.deb https://github.com/BeeuniLab/beeuni-cli/releases/latest/download/beeuni-capture_amd64.deb && sudo apt-get install -y /tmp/beeuni-capture_amd64.deb
```

Linux 支援 X11 錄製。Wayland 對話可以註冊，但目前不能錄製。macOS 仍需要螢幕錄製權限。

## 檢查和撤銷

在 **Capture → 裝置** 檢視裝置狀態。在 **等待批准** 中批准或拒絕裝置；如果需要，將裝置關聯到成員。未關聯的裝置為組織錄製，不會自動歸到電腦登入郵箱對應的成員。

在裝置端暫停錄製，或由管理員暫停整個組織。撤銷裝置會立即使裝置權杖失效。撤銷註冊權杖只阻止新設備註冊，不會停止已註冊的裝置。解除安裝應用不會立即清除電腦上的歷史記錄。

完整安裝和移除命令見英文版批次安裝文件。

[Capture](/docs/zh-TW/capture) · [IT rollout (English)](/docs/capture/rollout)
