Powershell connect to Datastore

This is thanks to a community post from LucD
 

$dsName = "MyDS"
$ds = Get-datastore -Name $dsName
New-PSDrive -Name $dsName -Root \ -PSProvider VimDatastore -Datastore $ds
 

Then
 

cd MyDS:
 

Still trying to figure out how to move stuff to and from with it but it is still pretty cool that you can view your files.

Comments