Next Topic

Previous Topic

Book Contents

disableWindowsService()

Disables a Windows service. See startWindowsService(), stopWindowsService(), and windowsServiceRecoverySettings().

Operating systems supported: Windows

Note: Be sure to use the service name of the service, not the display name of the service. For example, the display name of the service for Microsoft SQL Server is SQL Server (MSSQLSERVER), but the service name of the service is MSSQLSERVER. For Windows machines, right click any service in the Services window and click the Properties option to see the service name of that service.

Example

disableWindowsService("#service_name#", "All Operating Systems", "Halt on Fail")