# CMS_RerunAgent

> Reruns the CapaInstaller Agent in the executing context.

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

### Description

Reruns the CapaInstaller Agent in the executing context

### Syntax

CMS_RerunAgent() As Boolean

### Example

**VBScript**

```vb
If bStatus Then bStatus = CMS_RerunAgent()
```

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

### Related functions

[Constants](/capainstaller/vb-scripting-library/addendum/constants/) [Package Property](/capainstaller/vb-scripting-library/addendum/package-property/) [Variables](/capainstaller/vb-scripting-library/addendum/variables/) [Business Unit support](/capainstaller/vb-scripting-library/addendum/business-unit-support/)
