在 Operations Manager 中執行工作Running tasks in Operations Manager

重要

已不再支援此版本的 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 Operations 主控台中,[工作] 窗格提供工作的連結。In the System Center Operations Manager Operations console, the Tasks pane provides links to tasks. 工作是由使用者從 Operations 主控台起始的動作,在 Operations Manager 代理程式上或啟動 Operations 主控台的電腦上執行。A task is a user-initiated action from the Operations console that is run on an Operations Manager agent or on the computer where the Operations console is launched from. 可用的工作會視安裝的管理組件而定。The tasks that are available depend on the management packs that are installed. 例如,Operations Manager 隨附提供偵測工作的一組核心功能。For example, Operations Manager comes with a core set of functionality that provides the ping task. 當您安裝 SQL Server 管理組件時,該功能即會新增 SQL 專屬的工作,例如啟動或停止 SQL Server 代理程式的工作。When you install the SQL Server management pack, it adds SQL-specific tasks, such as a task to start or stop the SQL Server agent.

注意

如果未顯示 [工作] 窗格,請按一下工具列上的 [工作] 來顯示。If the Tasks pane is not displayed, click Tasks on the toolbar to display it.

請按一下警示或物件來查看該警示或物件的工作。Click an alert or object to see tasks for that alert or object. 請按一下工作來執行該工作。Click a task to run the task.

工作的範例

在此範例中,如果您按一下 [顯示本機使用者] 工作,您會看到 [執行工作] 對話方塊︰In the example above, if you click the task Display Local Users, you see a Run Task dialog box:

執行工作對話方塊的範例

除非在此對話方塊中指定其他認證,否則工作會使用預設動作帳戶。Tasks use the default action account, unless you specify other credentials in this dialog box. 管理組件作者也可以設定工作來使用特定執行身分設定檔。Tasks can also be configured by a management pack author to use a specific Run As profile.

一般來說,您應接受預設值並按一下 [執行] 。Generally, you should accept the defaults and click Run. 您接著會看到 [工作狀態] 視窗:You will then see a Task Status window:

工作狀態視窗的範例

在此例中,工作已順利完成。In this instance, the task completed successfully. 工作輸出提供您工作的結果,在此案例中會傳回伺服器上定義的所有使用者帳戶。Task Output provides you with the results of the task, in this case it will return all of the user accounts defined on the server.

後續步驟Next steps

  • 若要使用排程,在已計劃的維護期間暫時停止監視電腦、電腦群組或受監視的物件,或是在針對問題進行疑難排解的時候停止監視,請參閱如何使用維護模式暫停監視To stop monitoring of a computer, group of computers or monitored object temporarily during planned maintenance using a schedule, or to stop monitoring while troubleshooting an issue, see How to Suspend Monitoring Temporarily by Using Maintenance Mode.

  • 群組可協助分類、分級或排列一或多個受監視的物件以管理視覺化資料、覆寫、報表等等的目標。Groups help categorize, classify or arrange one or more monitored objects to manage targeting of visualized data, overrides, reports, and more. 若要了解如何建立群組以及群組的常見用法,請參閱建立及管理群組To learn how to create groups and common uses for groups, see Creating and Managing Groups.

  • Operations Manager 延伸 PowerShell 命令列環境和工作指令碼技術,將大部分的 Operations Manager 系統管理工作自動化。Operations Manager extends the PowerShell command-line environment and task-based scripting technology to automate most Operations Manager administrative tasks. 請參閱使用 Operations Manager 殼層See Using Operations Manager Shell.