設定 Windows 代理程式Configuring Windows agents

重要

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

在 System Center – Operations Manager 中,當您將代理程式安裝到電腦時,系統會將 Microsoft Monitoring Agent 應用程式新增到控制台。In System Center – Operations Manager, when you install an agent on a computer, an Microsoft Monitoring Agent application is added to Control Panel. 您可以使用此應用程式變更代理程式將在執行管理伺服器要求的動作時使用的帳戶、從代理程式設定移除管理群組,以及設定代理程式的 Active Directory 整合設定。You can use the application to change the account that the agent will use when performing actions requested by the management server, to remove a management group from an agent configuration, and to configure the Active Directory integration setting for the agent. 若要執行這些工作,您必須擁有電腦的本機系統管理員權限。To perform these tasks, you must have local Administrator permissions on the computer.

注意

如果要將在代理程式中新增或移除管理群組的程序自動化,您可以使用 Operations Manager CmdletOperations Manager 代理程式設定程式庫中的代理程式 API,以撰寫可自動化代理程式設定程序的指令碼。If you want to automate the process of adding or removing management groups from an agent, you can use the Operations Manager cmdlets or the Agent API from the Operations Manager Agent Configuration Library, allowing you to write scripts that can automate the agent configuration process.

注意

當您在 Microsoft Monitoring Agent 應用程式儲存變更後,Microsoft Monitoring Agent 服務將會停止再重新啟動。When you save changes in the Microsoft Monitoring Agent application, the Microsoft Monitoring Agent service will be stopped and restarted.

將代理程式設定為向多重管理群組回報Configuring an agent to report to multiple management groups

使用下列程序將 Operations Manager 代理程式部署為多個管理群組的成員,亦即所謂的「多重主目錄」。Use the following procedure to make an Operations Manager agent a member of multiple management groups, also referred to as multihoming. 例如,代理程式可設定為將 Active Directory 資料回報給目錄服務管理群組,而將 Exchange 資料回報給訊息處理群組。For example, an agent can be configured to report Active Directory data to the Directory Services Management Group and Exchange data to the Messaging Management Group. 代理程式可以是最多四個管理群組的成員。An agent can be a member of up to four management groups.

所有的管理群組不需要統一使用同一種部署方式。You do not need to use the same deployment method for all of the management groups.

注意

將探索到的代理程式執行個體變成新管理群組的一部分,可能需要一天或更長的時間。It might take one day or longer for the discovered instances of the agent to be made part of the new management group. 系統在下次探索間隔之後才會新增這些執行個體。They will be added after the next discovery interval.

請執行下列其中一個動作:Do one of the following:

  • 在代理程式管理的電腦上,按兩下 [控制台] 中的 [Microsoft Monitoring Agent] 。On the agent-managed computer, in Control Panel, double-click Microsoft Monitoring Agent. 在 [Microsoft Monitoring Agent] 中的 [Operations Manager] 索引標籤上,按一下 [新增] ,輸入新管理群組的資訊,然後按一下 [確定] 。In Microsoft Monitoring Agent, on the Operations Manager tab, click Add, enter the information for the new management group, and then click OK.

  • 從連線到新管理群組的 Operations Manager Operations 主控台執行 [探索精靈] ,選取所要的電腦,然後對其部署代理程式。Run the Discovery Wizard from the Operations Manager Operations console that is connected to the new management group, select the desired computers, and deploy the agent to them. 如需詳細資訊,請參閱使用探索精靈在 Windows 上安裝代理程式For more information, see Install agent on Windows using the Discovery Wizard. (Operations 主控台中名為 [探索精靈] 的功能表項目會開啟 [電腦和裝置管理] 精靈)。(The menu item in the Operations console named Discovery Wizard opens the Computer and Device Management wizard.)

  • 在所要的電腦上執行 MOMAgent.msi Windows Installer 套件,然後新增一個新管理群組以修改安裝。Run the MOMAgent.msi Windows installer package on the desired computers, and modify the installation by adding a new management group. 如需詳細資訊,請參閱使用 MOMAgent.msi 手動安裝 Windows 代理程式For more information, see Install Windows Agent Manually Using MOMAgent.msi.

變更代理程式的帳戶設定Changing the account configuration for an agent

您可以使用下列程序變更代理程式將在執行管理伺服器要求動作時使用的帳戶。You can use the following procedure to change the account that the agent will use when performing actions requested by the management server.

  1. 在代理程式管理的電腦上,按兩下 [控制台] 中的 [Microsoft Monitoring Agent] 。On the agent-managed computer, in Control Panel, double-click Microsoft Monitoring Agent.
  2. 在 [Operations Manager] 索引標籤上,選取管理群組,然後按一下 [編輯] 。On the Operations Manager tab, select a management group and then click Edit.
  3. 在 [代理程式動作帳戶] 區段中,編輯帳戶資訊,然後按一下 [確定] 。In the Agent Action Account section, edit the account information and then click OK.

從代理程式移除管理群組Removing a management group from an agent

您可以使用下列程序從代理程式設定移除管理群組。You can use the following procedure to remove a management group from the agent configuration.

  1. 在代理程式管理的電腦上,按兩下 [控制台] 中的 [Microsoft Monitoring Agent] 。On the agent-managed computer, in Control Panel, double-click Microsoft Monitoring Agent.
  2. 在 [Operations Manager] 索引標籤上,選取管理群組,然後按一下 [移除] 。On the Operations Manager tab, select a management group and then click Remove.
  3. 按一下 [確定] 。Click OK.

注意

您可以移除所有管理群組,但保留代理程式安裝。You can remove all management groups while leaving the agent installed. 這種作法適用於多種情況,例如您想準備要製作映像的電腦,而且需要已安裝代理程式但未指派給特定管理群組的映像。This is useful in situations such as when you want to prepare a computer for imaging and want an image with the agent installed but without assignment to a specific management group.

變更代理程式的 Active Directory 整合設定Changing the Active Directory Integration setting for an agent

您可以使用下列程序變更代理程式的 Active Directory 整合設定。You can use the following procedure to change the Active Directory integration setting for an agent.

  1. 在代理程式管理的電腦上,按兩下 [控制台] 中的 [Microsoft Monitoring Agent] 。On the agent-managed computer, in Control Panel, double-click Microsoft Monitoring Agent.
  2. 在 [Operations Manager] 索引標籤上,清除或選取 [自動更新來自 AD DS 的管理群組指派] 。On the Operations Manager tab, clear or select Automatically update management group assignments from AD DS. 如果選取此選項,在代理程式啟動時,代理程式將會查詢 Active Directory,以取得指派給它的管理群組清單。If you select this option, on agent startup, the agent will query Active Directory for a list of management groups to which it has been assigned. 這些管理群組 (如果有的話) 將會新增到清單中。Those management groups, if any, will be added to the list. 如果清除此選項,Active Directory 中指派給代理程式的所有管理群組就會從清單中移除。If you clear this option, all management groups assigned to the agent in Active Directory will be removed from the list.
  3. 按一下 [確定] 。Click OK.

後續步驟Next steps