To create a WMI event alert

In Object Explorer, connect to an instance of the SQL Server Database Engine, and then expand that instance.

Expand SQL Server Agent.

Right-click Alerts and then click New Alert.

In the Name box, enter a name for this alert.

Select Enable to enable the alert to run. Enable is checked by default.

In the Type box, click WMI event alert.

In the Namespace box, specify the WMI namespace for the WMI Query Language (WQL) statement that identifies which WMI event will trigger this alert. Only namespaces on the computer that runs SQL Server Agent are supported.