13.17 IISRestartSite

Use this Knowledge Script to shut down and restart an IIS site instance. This script raises an event if the IIS site cannot be shut down or restarted.

13.17.1 Resource Objects

Windows 2003 Server or later

13.17.2 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Event Notification

Raise event if operation succeeds?

Select Yes to raise an event if the attempt to restart the IIS site succeeds. The default is Yes.

Event severity if operation succeeds

Set the severity level, from 1 to 40, to indicate the importance of the event. The default is 25 (blue event indicator).

Raise event if operation fails?

Select Yes to raise an event if the attempt to restart the IIS site fails. The default is Yes.

Event severity if operation fails

Set the severity level, from 1 to 40, to indicate the importance of the event. The default is 15 (yellow event indicator).

Event severity for unexpected error

Set the event severity level, from 1 to 40, to indicate the importance of the event. The default is 35 (magenta level indicator).

This script raises an event for unexpected script errors. For example, if a script aborts before the job starts or during the job, an event is raised.

Administration

Restart site after shutdown?

Select Yes to restart the site after shutdown. The default is Yes.