Get-VaultItemAssociations

Syntax

Returns a collection of the item associations.

Get-VaultItemAssociations -Number <String> [-Attachments] [-Primary] [-Secondaries] [-Tertiaries] [-StandardComponents] [<CommonParameters>]

Parameters

Type

Name

Description

Optional

String

Number

Number of the item

no

SwitchParameter

Attachments

If the SwitchParameter is set only attachments will be returned

yes

SwitchParameter

Primary

If the SwitchParameter is set only the primary will be returned

yes

SwitchParameter

Secondaries

If the SwitchParameter is set only secondaries will be returned

yes

SwitchParameter

Tertiaries

If the SwitchParameter is set only tertiaries will be returned

yes

SwitchParameter

StandardComponents

If the SwitchParameter is set only standard components will be returned

yes

Return type

File[] ← on success
empty ← on failure

Remarks

The cmdlet returns the exact version of the associated files of an item.
When no SwitchParameter is set, the cmdlet will return all types of associations for the item.

Examples

Get all associations

$allAssocs = Get-VaultItemAssociations -Number 100001

Get attachments only

$attachments = Get-VaultItemAssociations -Number 100001 -Attachments