Remove Package From BusinessUnit
Description
Section titled “Description”Unlinks a package to a business unit
Syntax
Section titled “Syntax”Public Function RemovePackageFromBusinessUnit(ByVal packageName As String, ByVal packageVersion As String, ByVal packageType As String, ByVal businessUnitName As String) As Boolean
Parameters
Section titled “Parameters”PackageName (String)
The name of the package
PackageVersion
The version of the package, i.e.: “v1.0”
PackageType (String)
Type of package
- “Computer”
- “User”
BusinessUnitName (String)
The name of the business unit
Return Value
Section titled “Return Value”The function returns true if successful.
Example
Section titled “Example”VBScript
Set oCMS = CreateObject(``"CapaInstaller.SDK"``) wscript.echo oCMS.SetDefaultManagementPoint(``"1"``) wscript.echo oCMS.RemovePackageFromBusinessUnit(``"Mozilla Firefox 76.0 EN"``, "v1.0"``, "Computer", "HQ Skanderborg"``) |