11.18 RebootSystem

Use this Knowledge Script to shut down and restart a computer when an event is raised. This Action can run only on the managed computer as a Managed Client Action; select Managed Client Action in the Knowledge Script Properties dialog box.

To run this Knowledge Script, you need to be identified as a user with administrator privileges or have been granted permission to use this Action by the AppManager administrator.

This Knowledge Script also requires a registry setting under HKEY_LOCAL_MACHINE\Software: NetIQ\AppManager\4.0\NetIQmc\Security.

By default, the AllowReboot registry key is set to null to prevent any management servers from rebooting clients. If you have administrative privileges, you can change the registry settings to specify individual management servers or all management servers (using the wildcard *). For example: AllowReboot:REG_SZ:mktg02;salesNA;190.12.1.28.

You can use the NTAdmin_RegistrySet Knowledge Script to modify the registry key with the appropriate management server computer names.

Because of an Exchange mechanism, this Knowledge Script takes some time to reboot a computer if any Exchange service is running on that computer. Before using this Action, check whether any Exchange service is running on the target computers. If any Exchange service is running:

  • Consider stopping the service before starting a Knowledge Script job that uses this Action.

  • Consider whether you want to use this Action Knowledge on the selected computer.

  • Allow for a longer-than-normal shutdown and reboot period.

11.18.1 Setting Parameter Values

Set the following parameters as needed:

Parameter

How to Set It

Restart computer after shutdown?

Set to y to automatically restart the computer after shutting down. The default is y.

Force applications with unsaved changes to be closed?

Set to y to force any open applications to close when shutting down. In most cases, unsaved changes will be lost. The default is y.

Message to be displayed in the shutdown dialog box

Provide the message you want displayed in the shutdown dialog box. For example, if you are forcing applications to close, you may want the shutdown message to include a warning that unsaved changes may be lost.

Number of seconds to display shutdown dialog box

Specify the number of seconds you want the shutdown dialog displayed. The default is 60 seconds.

Number of hours to wait between restarts

Specify the number of hours to wait after the last restart before attempting another reboot.

This parameter allows you to prevent the Knowledge Script job from continuously shutting down and rebooting a computer.

The default is 4 hours.

Event severity

Set the event severity level, from 1 to 40, to indicate the importance of the event when this Action Knowledge Script encounters problems in shutting down or restarting the computer. The default is 7 (red event indicator).