[InfoPath Forms Services 維護] 計時器工作未啟用 (SharePoint Server)The InfoPath Forms Services Maintenance timer job is not enabled (SharePoint Server)

摘要:了解如何解決 SharePoint Server 2016 和 SharePoint Server 2013 中的 SharePoint Health Analyzer 規則「[InfoPath Forms Services 維護] 計時器工作未啟用」。Summary: Learn how to resolve the SharePoint Health Analyzer rule "The InfoPath Forms Services Maintenance timer job is not enabled", in SharePoint Server 2016 and SharePoint Server 2013.

規則名稱: [InfoPath Forms Services 維護] 計時器工作未啟用。Rule Name: The InfoPath Forms Services Maintenance timer job is not enabled.

摘要: [InfoPath Forms Services 維護] 計時器工作未啟用。Summary: The InfoPath Forms Services Maintenance timer job is not enabled.

InfoPath Forms Services 使用 [InfoPath Forms Services 維護] 計時器工作,透過快取每部前端網頁伺服器上的表單範本資料,來提升效能。The InfoPath Forms Services Maintenance timer job is used by InfoPath Forms Services to improve performance by caching form template data on each front-end web server.

原因: 此計時器工作可能已在 SharePoint 管理中心網站的 [工作定義] 頁面上停用,或使用了 Microsoft PowerShell Disable-SPTimerJob Cmdlet。Cause: The timer job may have been disabled on the Job Definitions page on the SharePoint Central Administration website or the Microsoft PowerShell Disable-SPTimerJob cmdlet was used.

解決方案:使用管理中心網站啟用計時器工作Resolution: Enable the timer job by using the Central Administration web site

  1. 確認執行此程序的使用者帳戶為 SharePoint 伺服器陣列管理員群組的成員。Verify that the user account that is performing this procedure is a member of the Farm Administrators SharePoint group.

  2. 啟動管理中心。Start Central Administration.

  3. 按一下 [管理中心] 的 [監視]。On Central Administration, click Monitoring.

  4. 按一下 [檢閱工作定義]。Click Review Job definitions.

  5. 按一下 [ InfoPath Forms Services 維護]。Click InfoPath Forms Services Maintenance.

  6. 按一下 [啟用]。Click Enable.

解決方案:使用 PowerShell 啟用計時器工作Resolution: Enable the timer job by using PowerShell

  1. 確認您具備下列成員資格:Verify that you have the following memberships:

    • SQL Server 執行個體上的 securityadmin 固定伺服器角色。securityadmin fixed server role on the SQL Server instance.

    • 所有要更新之資料庫上的 db_owner 固定資料庫角色。db_owner fixed database role on all databases that are to be updated.

    • 正在執行 PowerShell Cmdlet 之所在伺服器上的系統管理員群組。Administrators group on the server on which you are running the PowerShell cmdlets.

    • 請以高於上述基本要求新增必要的成員資格。Add memberships that are required beyond the minimums above.

      系統管理員可以使用 Add-SPShellAdmin Cmdlet 授與使用 SharePoint Server 2016 Cmdlet 的權限。An administrator can use the Add-SPShellAdmin cmdlet to grant permissions to use SharePoint Server 2016 cmdlets.

      注意

      [!附註] 如果您不具備上述權限,請連絡安裝程式系統管理員或 SQL Server 系統管理員要求權限。如需 PowerShell 權限的其他資訊,請參閱 Add-SPShellAdminIf you do not have permissions, contact your Setup administrator or SQL Server administrator to request permissions. For additional information about PowerShell permissions, see Add-SPShellAdmin.

  2. 啟動 SharePoint 管理命令介面。Start the SharePoint Management Shell.

  3. 在 PowerShell 命令提示字元處,輸入下列命令:At the PowerShell command prompt, type the following command:

    Enable-SPTimerJob "<FormsMaintenanceJobDefinition>"
    

    其中:Where:

    • <FormsMaintenanceJobDefintion> 是要啟用的計時器工作實際名稱。<FormsMaintenanceJobDefintion> is the actual name of the timer job to enable.

如需詳細資訊,請參閱 Enable-SPTimerJobFor more information, see Enable-SPTimerJob.