# Service_Stop

> Stops a named Windows service.

Source: https://docs.capaone.com/capainstaller/vb-scripting-library/service-functions/service-stop/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

### Description

Stops specified Service

### Syntax

Service_Stop(sServiceName) As Boolean

### Parameters

#### sServiceName (String)

Name of service

### Example

**VBScript**

```vb
If bStatus Then bStatus = Service_Stop("Service")
```

[Scripting Guidelines](/capainstaller/vb-scripting-library/scripting-guidelines/)

### Related functions

[Service_Exist](/capainstaller/vb-scripting-library/service-functions/service-exist/) [Service_Delete](/capainstaller/vb-scripting-library/service-functions/service-delete/) [Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/)
