You can use the vSphere PowerCLI Datastore Provider to create custom datastore drives.

Verify that you are connected to a vCenter Server system.


Get a datastore by its name and assign it to the $datastore variable.

$datastore = Get-Datastore Storage1

Create a new PowerShell drive ds: in $datastore.

New-PSDrive -Location $datastore -Name ds -PSProvider VimDatastore -Root '\'

You can use the New-PSDrive cmdlet, which is an alias of New-DatastoreDrive. It creates a new datastore drive using the Name and Datastore parameters. For example: Get-Datastore Storage1 | New-DatastoreDrive -Name ds.