> ## Documentation Index
> Fetch the complete documentation index at: https://help.gorelo.io/llms.txt
> Use this file to discover all available pages before exploring further.

# 部署 Gorelo Agent 的其他方式

> 使用 ImmyBot、Action1 和 NinjaOne 等第三方工具部署 Gorelo Agent，适用于无法使用 PowerShell 或手动安装的环境。

<Tabs>
  <Tab title="ImmyBot">
    <Steps>
      <Step title="导航到 Library > Upload。" />

      <Step title="在 Installer 步骤：">
        选择 Installer **Type = None**。

        <Frame>
          <img src="https://mintcdn.com/gorelo/RwonxuCaUJlU1Sj0/images/image-127.png?fit=max&auto=format&n=RwonxuCaUJlU1Sj0&q=85&s=83224d51612c786a55651f2103793d51" alt="Image 127" width="738" height="233" data-path="images/image-127.png" />
        </Frame>
      </Step>

      <Step title="在 Software 步骤：">
        * 选择 **Add version to new software**。
        * 在 **Software Info** 下添加：
          * Name = Gorelo

        <Frame>
          <img src="https://mintcdn.com/gorelo/RwonxuCaUJlU1Sj0/images/image-128.png?fit=max&auto=format&n=RwonxuCaUJlU1Sj0&q=85&s=19139c58c27b35d3279049fe8d3cc792" alt="Image 128" width="970" height="256" data-path="images/image-128.png" />
        </Frame>
      </Step>

      <Step title="版本检测：">
        * 选择 **Custom Detection Script**。
        * 使用默认设置添加一个 **New** 脚本。

        <Frame>
          <img src="https://mintcdn.com/gorelo/RwonxuCaUJlU1Sj0/images/image-129.png?fit=max&auto=format&n=RwonxuCaUJlU1Sj0&q=85&s=a508184c97b143f277a67eb5e50415bf" alt="Image 129" width="790" height="273" data-path="images/image-129.png" />
        </Frame>
      </Step>

      <Step title="复制并粘贴脚本：">
        ```powershell theme={null}
        $registryPath = "HKLM:\SOFTWARE\Gorelo"
        $valueName = "AgentVersion"

        try {
            $version = Get-ItemPropertyValue -Path $registryPath -Name $valueName -ErrorAction Stop
            Write-Output $version
        } catch {
            Write-Error "Unable to read version: $($_.Exception.Message)"
            exit 1
        }
        ```
      </Step>

      <Step title="安装">
        * 选择 **Custom Detection Script**。
        * 添加一个 **New** 脚本，并粘贴来自你的 Gorelo 租户的 Agent Asset [**安装命令**](/install-the-gorelo-agent)。

        <Frame>
          <img src="https://mintcdn.com/gorelo/RwonxuCaUJlU1Sj0/images/image-129.png?fit=max&auto=format&n=RwonxuCaUJlU1Sj0&q=85&s=a508184c97b143f277a67eb5e50415bf" alt="Image 129" width="790" height="273" data-path="images/image-129.png" />
        </Frame>
      </Step>

      <Step title="在版本步骤中输入：">
        * Version String = 8.42.0.0
      </Step>

      <Step title="点击 Create。" />
    </Steps>

    <Tip>
      你需要将这个新软件添加到你的部署页面，然后在 Gorelo 中采纳该资产。使用特定客户/位置的安装命令可以跳过采纳要求。
    </Tip>
  </Tab>

  <Tab title="PPKG">
    你可以使用预配包来擦除 Windows 并全新安装 Gorelo Agent。

    <Steps>
      <Step title="创建 Gorelo 安装脚本。">
        1. 导航到 [**Asset List**](https://app.gorelo.io/Asset/asset-list)
        2. 点击右上角的 **+ Assets**，然后选择 **Agent Asset**。
        3. 选择 Client/Location（可选），然后点击 **Request Agent。**
        4. 复制 PowerShell 脚本并将其保存为 `GoreloInstall.ps1`。
      </Step>

      <Step title="创建预配包。">
        1. 从 Microsoft Store 安装 [**Windows Configuration Designer**](https://apps.microsoft.com/detail/9nblggh4tx22)。
        2. 打开 Windows Configuration Designer 并选择 **Provision desktop devices**。
                   <Frame>
                     <img src="https://mintcdn.com/gorelo/QKPS0Jn2HSSAl8UQ/images/image-130.png?fit=max&auto=format&n=QKPS0Jn2HSSAl8UQ&q=85&s=092ee116f4df557d90f3247ae8a169f2" alt="Image" width="369" height="324" data-path="images/image-130.png" />
                   </Frame>
        3. 输入项目**名称**，选择项目文件夹的位置。
        4. 点击 **Finish。**
        5. 跟随向导，配置你认为必要的内容。
        6. 输入 **Device name**，打开 **Remove pre-installed software** 开关（擦除设备）。
        7. 点击 **Next。**
                   <Frame>
                     <img src="https://mintcdn.com/gorelo/QKPS0Jn2HSSAl8UQ/images/image-131.png?fit=max&auto=format&n=QKPS0Jn2HSSAl8UQ&q=85&s=a99acbec81a09306df82dfe4ddc7154a" alt="Image" width="1963" height="651" data-path="images/image-131.png" />
                   </Frame>
        8. 输入 **Set up network** 详情，或者如果仅使用有线连接则关闭该开关——然后点击 **Next。**
                   <Frame>
                     <img src="https://mintcdn.com/gorelo/QKPS0Jn2HSSAl8UQ/images/image-132.png?fit=max&auto=format&n=QKPS0Jn2HSSAl8UQ&q=85&s=57b7fa4e33e2a53ffe26ef8df348f5eb" alt="Image" width="908" height="368" data-path="images/image-132.png" />
                   </Frame>
           7. 选择 **Local Admin** 并输入详细信息。
           8. 点击 **Next**
                      <Frame>
                        <img src="https://mintcdn.com/gorelo/QKPS0Jn2HSSAl8UQ/images/image-133.png?fit=max&auto=format&n=QKPS0Jn2HSSAl8UQ&q=85&s=98fef1e0a07ca4d43a7034b6c0f04d50" alt="Image" width="988" height="366" data-path="images/image-133.png" />
                      </Frame>
           9. 使用以下详细信息添加应用程序：
              * **Application name**：Gorelo Install
              * **Installer path**：浏览到之前创建的 GoreloInstall.ps1
              * **Command line arguments：**<br />`powershell.exe -executionpolicy bypass -file "goreloinstall.ps1"`
           10. 点击 **Next**。
           11. 点击 **Add**。
           12. 点击 **Next**

        <Frame>
          <img src="https://mintcdn.com/gorelo/QKPS0Jn2HSSAl8UQ/images/image-134.png?fit=max&auto=format&n=QKPS0Jn2HSSAl8UQ&q=85&s=82a96d76c5472e8c7df981ec308c093c" alt="Image 134" width="1027" height="884" data-path="images/image-134.png" />
        </Frame>
      </Step>

      <Step title="在 Add certificates 步骤点击 Next 以跳过。" />

      <Step title="点击 Create 生成 PPKG。" />

      <Step title="在 OOBE 期间或通过双击直接应用 PPKG。" />
    </Steps>
  </Tab>

  <Tab title="Intune">
    在 Autopilot 完成运行后，你可以使用 Intune 部署 Gorelo Agent。

    <Steps>
      <Step title="创建 Gorelo 安装脚本。">
        1. 导航到 **[Asset List](https://app.gorelo.io/Asset/asset-list)。**
        2. 点击右上角的 **+ Assets**，然后选择 **Agent Asset**。
        3. 选择 Client/Location（可选），然后点击 **Request Agent。**
        4. 复制 PowerShell 脚本并将其保存为 `GoreloInstall.ps1`。
      </Step>

      <Step title="添加 Intune 平台脚本。">
        1. 打开 [**Intune**](https://intune.microsoft.com/) 并使用全局管理员账户登录。
        2. 在左侧菜单中导航至 **Devices**，然后 **Manage devices** > **Scripts and remediations。**
        3. 在顶部选择 **Platform scripts** 选项卡

        <Frame>
          <img src="https://mintcdn.com/gorelo/H8JmaxkNoGgYov3q/images/image-135.png?fit=max&auto=format&n=H8JmaxkNoGgYov3q&q=85&s=9e2913cce0dfd0eeb15dbfdaea5b0951" alt="Image" width="1016" height="500" data-path="images/image-135.png" />
        </Frame>

        4. 点击 **+ Add** 按钮并选择 Windows 10 and later。

        * **Name**：GoreloInstall

        5. 点击 **Next。**

        * **Script location：** 上传 GoreloInstall.ps1 脚本。
        * **Run this script using the logged on credentials**：No。
        * **Enforce script signature check**：No。
        * **Run script in 64 bit PowerShell Host**：Yes。

        6. 点击 Next。

        * **Included groups**：选择特定的组。

        7. 点击 Next。
        8. 检查详细信息并点击 **Add**。

        <Frame>
          <img src="https://mintcdn.com/gorelo/BAVr6rpwsB3mcQXR/images/intune.png?fit=max&auto=format&n=BAVr6rpwsB3mcQXR&q=85&s=151ba8e22b428cfc91923d5fe2552a42" alt="Image" width="609" height="599" data-path="images/intune.png" />
        </Frame>
      </Step>
    </Steps>
  </Tab>
</Tabs>
