Package functions
Package functions let you retrieve information about CapaInstaller packages and manipulate them from a script, including creating, cloning, copying, importing, exporting, promoting, and deleting packages, and linking them to Business Units, groups, and Management Servers.
Package functions work on the current management point. Call Set instance management point before you call them.
Functions that work on a single package accept the package type as either a number or a name: 1 or "Computer" for computer packages, and 2 or "User" for user packages. The functions that return lists of packages (Get packages, Get all inventory packages, and Get all none inventory packages) only accept "Computer" or "User".
In this section
Section titled “In this section”- Add Package to BusinessUnit - Add package to business unit.
- Add package to group - Add package to a group.
- Add package to management server - Add package to a Management Server.
- Clone Package - Clone Package.
- Copy Package - Copy Package.
- Create package - Create a Package.
- Delete Package - Delete package.
- Disable Package Schedule - Disable Package Schedule.
- Enable Package Schedule - Enable Package Schedule.
- Exist package - Check if a package exists.
- Export package - Export a package.
- Get all inventory packages - Get all inventory packages.
- Get all none inventory packages - Get all non-inventory packages.
- Get group packages - Gets packages linked to a group.
- Get log - Get a log for a package.
- Get Package Description - Get a package description.
- Get Package Folder - Get a package folder.
- Get packages - Get all packages.
- Get packages on Business Unit - Get packages on a Business Unit.
- Get packages on management server - Get packages on a Management Server.
- Get package status - Get Package Status.
- Import package - Import a package.
- Promote Package - Promote package.
- Remove Package From BusinessUnit - Removes a package from a Business Unit.
- Remove package from group - Remove package from a group.
- Remove package from management server - Remove package from a Management Server.
- Set Package Description - Set a package description.
- Set Package Folder - Set Package Folder.
- Set Package Priority - Set the priority of a package.
- Set Package Schedule - Set Package Schedule.
- Update Now on Package - ‘Update Now’ on package.