Quantcast
Channel: VMware Communities : All Content - All Communities
Viewing all articles
Browse latest Browse all 183671

New-PSDrive problem

$
0
0

Hi,

 

I was creating a New-PSDrive to use the Copy-Datastore function in the following way:

$vcServer = Connect-VIServer -Server: -Destination MyDS:\Installer\ -Force

 

 

This was working fine for me yesterday but seems to be giving a problem today and I just cant figure why. PLease help. Error listed below

 

New-PSDrive : Cannot bind parameter 'Datastore' to the target. Exception settin

g "Datastore": "Invalid location type. Location accepts only VIDatastore object

s."

At C:\DOCUME1\lahird\LOCALS1\Temp\7d6a8a2f-c779-4253-a09e-7fcca9341784.ps1:2

char:68

+ New-PSDrive -Name MyDS1 -PSProvider VimDatastore -Root \ -Datastore <<<<  "da

tastore2"

    + CategoryInfo          : WriteError: (, ParameterBindingE

   xception

    + FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Comm

   ands.NewPSDriveCommand


Viewing all articles
Browse latest Browse all 183671

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>