Update-VaultFolder

Updates the category of a Folder in Vault.

Syntax

Update-VaultFolder -Path <String> -Category <String> [<CommonParameters>]

Parameters

Type

Name

Description

Optional

String

Path

Path of the Folder, that should be updated.

no

String

Category

Existing category that the Folder should be changed to.

no

Return type

Folder ← on success
empty ← on failure. Exception/ErrorMessage can be accessed using $Error.

Remarks

The -Category parameter accepts both system and display names of categories.

Examples

Update the category of a Folder in Vault:

$folder = Update-VaultFolder -Path '$/Designs/' -Category 'Project'

Error handling, analyze why folder could not be updated using $Error:

$folder = Update-VaultFolder -Folder '$/Designs/' -Category 'Test'

if(-not $folder){
    $Error[0].Exception #Returns: "Category 'Test' not found!"
}