Environment
NetIQ AppManager 6.x
NetIQ AppManager 7.0.x
NetIQ AppManager 7.0.x
Situation
How can I stop a service on an Agent computer?
Resolution
You can use the NTADMIN_RunDOS Knowledge Script (KS) to run a manually created batch file of DOS commands to stop services.
To configure the batch file for the KS to run:
- Manually create your DOS batch file.
- Type net stop <servicename> in the batch file.
Note:<servicename> is the service you want to stop. - Save the batch file in an accessible location to your Management Server (such as a local path).
- Type net stop <servicename> in the batch file.
- Within the KS properties, enter the path to your batch file.
- Click OK to save the properties.
- Drop the KS on your Agent or Server Groups.
Note: Do NOT drop this KS on your Master group, as all servers will be affected.
Additional Information
Formerly known as NETIQKB45811
Use the DOS commands on a test server before running commands in a batch file against a production server. While the KS will run the batch file\commands you enter, NetIQ Technical Support will not troubleshoot the actual DOS commands, batch file properties, or exit codes for proper execution of any DOS batch file.