{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":46449,"path":"service-management-for-the-enterprise/planned-maintenance-family/t_RunSchedJobToExecMaintSched.md","title":"Run a scheduled job to execute a maintenance schedule","bundle":null,"doc_type":null,"release":"australia","body":"\n# Run a scheduled job to execute a maintenance schedule\n\nMaintenance schedules are executed whenever the meter, duration, script, or condition criteria is met. You can also use the Schedule ad-hoc feature to run a maintenance schedule manually.\n\n## Before you begin\n\nRole required: SM admin\n\n## About this task\n\nMaintenance schedules are run regularly using the Planned Maintenance Nightly Run scheduled job. When the scheduled job is run, the appropriate Service Orders are created for all records that meet the schedule criteria \\(including all records for the current day\\).\n\nTo configure the nightly planned maintenance scheduled job:\n\n## Procedure\n\n1.  Navigate to **All** &gt; **System Definition** &gt; **Scheduled Jobs**.\n\n2.  Open **Planned Maintenance Nightly Run**.\n\n3.  In Related Links, click **Configure Job Definition**.\n\n4.  To specify a different schedule for running the job, change the **Run** and **Time** fields.\n\n    A scheduled job does not run based on the value set in the **Next run time** field in the maintenance plan record for this job. For more information, see [Configure a maintenance schedule](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/service-management-for-the-enterprise/planned-maintenance-family/t_DefineAMaintSched.md).\n\n5.  Click **Update**.\n\n6.  At any time, to run the scheduled job, click **Execute Now**.\n\n    The scheduled job evaluates all previously defined schedules and executes the ones that are scheduled to run.\n\n    **Note:** If one or more records in the table associated with the maintenance plan are deleted after the matching records were associated with the maintenance plan, the next nightly run removes all the records associated with those removed assets.\n\n\n**Parent Topic:**[Managing maintenance plans](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/service-management-for-the-enterprise/planned-maintenance-family/c_MaintPlanMgmt.md)\n\n"}}