# Get all none inventory packages

> Returns all packages that are not inventory packages, optionally filtered by type.

Source: https://docs.capaone.com/capainstaller/sdk-capainstaller-software-development-kit-functions/package-functions/get-all-none-inventory-packages/  
Product: CapaInstaller — a separate CapaSystems product; do not apply this page to any other.

## Description

Returns all packages that are not Inventory packages.

## Syntax

GetAllNoneInventoryPackages(Optional Byval PackageType as String = "") as ArrayList

## Parameters

***PackageType (String)***

Type of package

- "Computer"
- "User"

This parameter is optional, meaning that it is not required. If not stated, all none inventory packages are returned

## Return value

The function returns an array of Inventory packages. Each package (p) in the array is a joined line with the character defined with [Set splitter](/capainstaller/sdk-capainstaller-software-development-kit-functions/container-functions/set-splitter/).

- p.Name
- p.Version
- p.Type
- p.DisplayName
- p.IsMandatory
- p.ScheduleId
- p.Description
- p.GUID
- p.ID
- p.IsInteractive
- p.DependendPackageID
- p.IsInventoryPackage
- p.CollectMode
- p.Priority
- p.ServerDeploy

## Example

**VBScript**

```vb
Set oCMS = CreateObject("CapaInstaller.SDK") 
Set aUnit = CreateObject("System.Collections.ArrayList") 
oCMS.SetInstanceManagementPoint("1") 
oCMS.SetSplitter (";")
Set aUnit =  oCMS.GetAllNoneInventoryPackages("Computer") 
for each item in aUnit 
  wscript.echo split(item,";")(2) & vbtab & split(item,";")(1)  & vbtab & split(item,";")(0)
next 
```

## Output

The output from the example above could look like this;

**Text**

```text
Microsoft (R) Windows Script Host Version 5.8
Copyright (C) Microsoft Corporation. All rights reserved.

Computer        v4      CMSConsole
Computer        v1.0    VS_2008_TeamSuite_Trial
```
