Zoomed Image

AMSX Scripting Language - Command : StopService

Summary

Stop a Windows service if it is currently running

Description

Checks the Windows Service Control Manager and stops the named service if its current status is Running. No action is taken if the service is already stopped or in another state.

Parameters

ParameterDescription
cmdWindows service name to stop

Syntax


StopService "Windows service name to stop"

Return to the AMSX Command Reference