---
title: "Find-VBRViDatastore"
description: "Looks for VMware datastores. Product Edition: Standard, Enterprise, Enterprise Plus, Veeam Universal License This cmdlet provides the following parameter sets: This cmdlet looks for VMware datastores connected to the specified ESXi host or that are c"
canonical: "https://helpcenter.veeam.com/docs/vbr/powershell/find-vbrvidatastore.html"
breadcrumb: "Veeam PowerShell Reference > Veeam PowerShell Reference > Backup Infrastructure > VMware Virtual Units > Find-VBRViDatastore"
dateModified: "2026-08-19"
---
# Find-VBRViDatastore
## Short Description
Looks for VMware datastores.
**Product Edition**: Standard, Enterprise, Enterprise Plus, Veeam Universal License
## Syntax
This cmdlet provides the following parameter sets:
-
Server
```
Find-VBRViDatastore [-Name ] -Server []
```
-
StoragePolicy
```
Find-VBRViDatastore [-Name ] -StoragePolicy []
```
## Detailed Description
This cmdlet looks for VMware datastores connected to the specified ESXi host or that are compatible with a particular VMware storage policy profile.
## Parameters
|
Parameter
|
Description
|
Type
|
Required
|
Position
|
Accept Pipeline Input
|
|
Name
|
Specifies an array of datastores names. The cmdlet will return datastores with these names.
|
String[]
|
False
|
Named
|
False
|
|
Server
|
Specifies an ESXi host. The cmdlet will return datastores connected to this host. Accepts the CHost object. To get this object, run the Get-VBRServer cmdlet.
|
CHost
|
True
|
Named
|
True (ByPropertyName, ByValue)
|
|
StoragePolicy
|
Specifies the VMware storage policy profile. The cmdlet will return datastores compatible with this profile. Accepts the VBRViStoragePolicy object. To get this object, run the Find-VBRViStoragePolicy cmdlet.
|
VBRViStoragePolicy
|
True
|
Named
|
True (ByPropertyName, ByValue)
|
``
This cmdlet supports Microsoft PowerShell common parameters. For more information on common parameters, see [ Microsoft Docs](https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_commonparameters?view=powershell-7).
## Output Object
This cmdlet returns the `CViDatastoreItem` object that contains information on VMware datastores connected to the specified ESXi host or compatible with a specific storage policy.
## Examples
::: example
### Example 1. Looking for VMware Datastores Connected to Specific ESXi Host
This example shows how to get a list of datastores connected to the `esx05.tech.local` ESXi hosts.
```
$server = Get-VBRServer -Type ESXi -Name "esx05.tech.local"
Find-VBRViDatastore -Server $server
```
Perform the following steps:
1. Run the [`Get-VBRServer`](get-vbrserver.md) cmdlet. Specify the `Type` and `Name` parameter values. Save the result to the `$server` variable.
2. Run the `Find-VBRViDatastore` cmdlet. Set the `$server` variable as the `Server` parameter value.
:::
::: example
### Example 2. Looking for VMware Datastores Compatible with Specific Storage Policy Profiles
This example shows how to get the list of the `MSExchange` datastores and datastores which names start with `LocalStore_0*`. These datastores are compatible with the `SP Virtual SAN Default` storage policy profile.
```
$server = Get-VBRServer -Type ESXi -Name "esx05.tech.local"
$policy = Find-VBRViStoragePolicy -Server $server -Name "SP Virtual SAN Default"
Find-VBRViDatastore -StoragePolicy $policy -Name "MSExchange", "LocalStore_0*"
```
Perform the following steps:
1. Run the [`Get-VBRServer`](get-vbrserver.md) cmdlet. Specify the `Type` and `Name` parameter values. Save the result to the `$server` variable.
2. Run the [`Find-VBRViStoragePolicy`](find-vbrvistoragepolicy.md) cmdlet. Specify the `Server` and `Name` parameter values. Save the result to the `$policy` variable.
3. Run the `Find-VBRViDatastore` cmdlet. Set the `$policy` variable as the `StoragePolicy` parameter value. Specify the `Name` parameter value.
:::
## Related Commands
- [`Get-VBRServer`](get-vbrserver.md)
- [`Find-VBRViStoragePolicy`](find-vbrvistoragepolicy.md)