This is an archive version of the document. To get the most up-to-date information, see the current version.

Find-VBRViFolder

Short Description

Looks for folders on a specified ESXi host.

Applies to

Platform: VMware

Product Edition: Standard, Enterprise, Enterprise Plus

Syntax

Find-VBRViFolder -Server <CHost> [-Name <String[]>] [-WarningAction <ActionPreference>] [-WarningVariable <String>] [<CommonParameters>]

Detailed Description

This cmdlet returns folders on a specified ESXi host.

You can get the list of all folders on the specified ESXi host or look for instances directly by name.

Parameters

Parameter

Description

Required

Position

Accept
Pipeline
Input

Accept
Wildcard
Characters

Server

Specifies the ESXi host on which you want to look for folders.

True

Named

True (ByValue,
ByProperty
Name)

False

Name

Specifies the array of folder names. The cmdlet will return folders with these names.

False

Named

False

True

<CommonParameters>

This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see the About CommonParameters section of Microsoft Docs.

Return Type

CViFolderItem

Example 1

This command looks for all folders located on the ESXi host named 'Server01'. The server is obtained with Get-VBRServer, sorted by name and piped down.

Get-VBRServer -Name "Server01" | Find-VBRViFolder

Example 2

This command looks for a folder named 'Weekly_Reports' located on the ESXi host named 'Server01'. The server is obtained with Get-VBRServer, sorted by name and piped down.

Get-VBRServer -Name "Server01" | Find-VBRViFolder -Name "Weekly_Reports"

Example 3

This command looks for folders named 'Weekly_Reports' and 'Monthly_Reports' located on the ESXi host named "Server01". The server is obtained with Get-VBRServer and assigned to '$server01' variable.

$server01 = Get-VBRServer -Name "Server01"

Find-VBRViFolder -Server $server01 -Name "Weekly_Reports", "Monthly_Reports"

Related Commands

Get-VBRServer