I have a virtual image mounted as Floppy Drive 1 and I am trying to move a file to it.
This is my Powershell:
$server = Connect-VIServer -Server $vCenterAddress -Port $vCenterPort -Protocol $vCenterProtocol -User $vCenterUsername -Password $vCenterPassword
$ds1 = Get-Datastore -Server $server $sourceDatastore
New-PSDrive -Location $ds1 -Name source -PSProvider VimDatastore -Root '\'
Copy-DatastoreItem source:$sourceFolder$sourceFilename -Destination A:platformConfig.xml-jhm
I am getting the following error:
Copy-DatastoreItem : The specified destination folder 'A:\' does not exists. Use the Force parameter to force operation.
Do I need to do something special to be able to write to the virtual A: drive? Is it under a name different from A:?
Thanks.
John