如何修復 Windows 代理程式How to repair the Windows agent

重要

已不再支援此版本的 Operations Manager,建議升級至 Operations Manager 2019This version of Operations Manager has reached the end of support, we recommend you to upgrade to Operations Manager 2019.

使用下列其中一個程序在代理程式管理的電腦上修復 Windows 代理程式的安裝。Use the one of the following procedures to repair the installation of the Windows agent on agent-managed computers.

使用 Operation Manager 1807 和更新版本,您可以從 Operations 主控台針對代理程式重新設定應用程式效能監視 (APM) 元件。With Operation Manager 1807 and later, you can reconfigure the Application Performance Monitoring (APM) component for the agent from the Operations console.

使用 Operations 主控台修復代理程式的安裝To repair the installation of the agent by using the Operations console

  1. 使用屬於 Operations Manager 系統管理員角色成員的帳戶登入 Operations 主控台。Sign in to the Operations console with an account that is a member of the Operations Manager Administrators role.

  2. 按一下 [系統管理] 。Click Administration.

  3. 在 [管理] 窗格中的,瀏覽到 [裝置管理\代理程式管理] 。In the Administration pane, navigate to Device Management\Agent Managed.

  4. 在 [代理程式管理] 窗格中,選取要修復代理程式的一或多部電腦,以滑鼠右鍵按一下它們,然後選取 [修復] 。In the Agent Managed pane, select one or more computers you want to repair the agent on, right-click them and then select Repair.

  5. 在 [修復代理程式] 對話方塊中,維持選取 [使用選取的管理伺服器動作帳戶] 或執行下列步驟︰In the Repair Agents dialog box, either leave Use selected Management Server Action Account selected or do the following:

    1. 選取 [其他使用者帳戶] 。Select Other user account.

    2. 輸入 [使用者名稱] 和 [密碼] ,然後輸入或從清單中選取 [網域] 。Type the User name and Password, and type or select the Domain from the list. 如果帳戶是本機電腦帳戶,請選取 [這是本機電腦帳戶,不是網域帳戶] 。Select This is a local computer account, not a domain account if the account is a local computer account.

    重要

    帳戶必須具有電腦的系統管理權限,修復才能成功。The account must have administrative rights on the computer for the repair to succeed.

    1. 若不想要再監視 .NET Web 型應用程式,或要求在目標電腦上安裝元件,請取消選取 [安裝或保留 APM] 選項。Deselect the option Install or keep APM if you no longer intend to monitor a .NET web-based application or require the component installed on the targeted computer. 否則,維持選取該選項。Otherwise, leave the option selected.

    2. 按一下 [修復] 。Click Repair.

    1. 選取 [其他使用者帳戶] 。Select Other user account.

    2. 輸入 [使用者名稱] 和 [密碼] ,然後輸入或從清單中選取 [網域] 。Type the User name and Password, and type or select the Domain from the list. 如果帳戶是本機電腦帳戶,請選取 [這是本機電腦帳戶,不是網域帳戶] 。Select This is a local computer account, not a domain account if the account is a local computer account.

    重要

    帳戶必須具有電腦的系統管理權限,修復才能成功。The account must have administrative rights on the computer for the repair to succeed.

    1. 按一下 [修復] 。Click Repair.
  6. 在 [代理程式管理工作狀態] 對話方塊中,所選的每一台電腦的 [狀態] 會從 [已佇列] 變成 [成功] ;已經可以開始管理電腦。In the Agent Management Task Status dialog box, the Status for each selected computer changes from Queued to Success; the computers are ready to be managed.

    注意

    如果電腦工作失敗,請按一下目標電腦。If the task fails for a computer, click the targeted computer. [工作輸出] 文字方塊中會顯示失敗的原因。The reason for the failure is displayed in the Task Output text box.

  7. 按一下 [關閉] 。Click Close.

若要使用 MOMAgent.msi 安裝精靈修復代理程式To repair the agent by using the MOMAgent.msi setup wizard

  1. 使用電腦系統管理員安全性群組成員的帳戶登入受管理電腦。Sign in to a managed computer with an account that is a member of the Administrators security group for the computer.

  2. 開啟 [控制台] ,然後按一下 [程式和功能] 。In Control Panel, click Programs and Features.

  3. 在 [程式和功能] 中,按一下 [Microsoft Monitoring Agent] 設定的 [變更]。In Programs and Features, click Change for Microsoft Monitoring Agent setup.

  4. 在 [代理程式安裝精靈] 中,按一下 [下一步]。In the Agent Setup Wizard, click Next.

  5. 在 [程式維護] 頁面上,選取 [修復] ,然後按一下 [下一步] 。In the Program Maintenance page, select Repair, and then click Next.

  6. 在 [準備修復程式] 頁面上,按一下 [安裝] 。On the Ready to Repair the Program page, click Install.

  7. 在 [正在完成 Microsoft Monitoring Agent 安裝精靈] 頁面上,按一下 [完成] 。On the Completing the Microsoft Monitoring Agent Setup Wizard page, click Finish.

  8. 檢查「應用程式事件記錄檔」以確認它已成功完成,或如果修復失敗,則搜尋來源為 MsiInstaller 的事件以了解錯誤為何。Check the Application Event Log to confirm it completed successfully or for errors if the repair failed by searching at events from source MsiInstaller.

若要使用 MOMAgent.msi 從命令列修復代理程式To repair the agent by using MOMAgent.msi from the command line

  1. 使用電腦系統管理員安全性群組成員的帳戶登入受管理電腦。Sign in to a managed computer with an account that is a member of the administrators security group for the computer.

  2. 開啟命令提示字元。Open a command prompt.

  3. 例如,在提示字元中輸入下列命令:Type the following, for example, at the prompt:

    %WinDir%\System32\msiexec.exe /fomus \MOMAgent.msi./qb%WinDir%\System32\msiexec.exe /fomus \MOMAgent.msi./qb

  4. 檢查「應用程式事件記錄檔」以確認它已成功完成,或如果修復失敗,則搜尋來源為 MsiInstaller 的事件以了解錯誤為何。Check the Application Event Log to confirm it completed successfully or for errors if the repair failed by searching at events from source MsiInstaller.

後續步驟Next steps