Stop-Win32Service

Use this command to stop a service or a device.


Settings:

  • Service name
    The name of the service in the service database. The "..." button can be used to copy any service (available on the packaging system) from the service database.
  • Wait for service to stop
    Specifies that script execution does not continue until the service is stopped.


Example:

The example stops the DSM Runtime Service and waits until the service is stopped.


Corresponds to DSM eScript command:

  • StopService


See also: