Stop Service

Stops the service with the given display name.

Privileges

Normal

Input Parameters

Name Type Required Description
Service Name String Yes The display name of the service.
Force Boolean No Force the shutdown regardless of dependent services.
Disable Boolean No Shut the service down and set its state to Disabled.

Output Parameters

Name Type Description
Result Number Returns a success value of zero or any value other than zero to indicate failure.

Example Input Parameters

Name Type Required Example
Service Name String Yes Print Spooler
Force Boolean No Optionally force the specified Windows Service to be stopped.
Disable Boolean No Optionally disable the specified Windows Service after stopping service.