# Job Step: Verify that automation is enabled.

## Properties

Property | Value
--- | ---
Step Name | Verify that automation is enabled.
Step ID | 1
Subsystem | TSQL
Command | IF (msdb.dbo.fn_syspolicy_is_automation_enabled() != 1) BEGIN RAISERROR(34022, 16, 1) END
Cmdexec Success Code | 0
On Success Action | Go to next step
On Fail Action | Quit the job reporting success
Output File Name |

## Database Information

Property | Value
--- | ---
Database Name | master

## Step Last Run Information

Property | Value
--- | ---
Last Run | 06/03/2012 02:00:41
Last Run Outcome | Succeeded
Last Run Duration (hh:mm:ss) | 00:00:00
Last Run Retries | 0

## Retry Information

Property | Value
--- | ---
Retry Attempts | 0
Retry Interval |

#### See also

Job syspolicy_purge_history
List of Jobs