# Clone Device Application

> Clones an existing Device Application and its payloads.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/mdm-functions/clone-device-application/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

This function is used to clone an existing Device Application and its payloads.

## Syntax

**VBScript**

```vb
Public Function CloneDeviceApplication(DeviceApplicationId As Integer, NewName As String, ChangelogComment As String) As Boolean
```

## Parameters

## Return value

Returns a boolean value. True if succeeded, false if not.

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
Wscript.echo oCMS.SetInstanceManagementPoint("2") 

Dim iDeviceApplicationId		: iDeviceApplicationId = 153
Dim sNewName					: sNewName = "New cloned App"
Dim sChangelogComment       	: sChangelogComment = "Cloned App with sdk"
Wscript.echo "Cloning Device App: " & oCMS.CloneDeviceApplication(iDeviceApplicationId, sNewName, sChangelogComment)

sNewName = "New cloned App2"
Wscript.echo "Cloning Device App: " & oCMS.CloneDeviceApplication(iDeviceApplicationId, sNewName, sChangelogComment)

```
