How can I stop a service on an Agent computer? (NETIQKB45811)

  • 7745811
  • 02-Feb-2007
  • 12-Jan-2011


NetIQ AppManager 6.x
NetIQ AppManager 7.0.x


How can I stop a service on an Agent computer?


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: 

  1. Manually create your DOS batch file.
    1. Type net stop <servicename> in the batch file.
      Note:<servicename> is the service you want to stop.
    2. Save the batch file in an accessible location to your Management Server (such as a local path).
  2. Within the KS properties, enter the path to your batch file.
  3. Click OK to save the properties.
  4. 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.