Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 251495

Re: Writing/Deleting files on a .FLP virtual floppy image

$
0
0

Are you running this PowerCLI script on the vm where you have the floppy connected? Because now you are trying to copy to the floppy on the computer where you run the script. If you want to copy to a floppy on a vm you can use the Copy-VMGuestFile cmdlet. For example:

 

$server=Connect-VIServer-Server$vCenterAddress-Port$vCenterPort-Protocol$vCenterProtocol-User$vCenterUsername-Password$vCenterPassword$ds1=Get-Datastore-Server$server$sourceDatastoreNew-PSDrive -Location $ds1-Namesource-PSProviderVimDatastore-Root'\'Copy-DatastoreItem  source:$sourceFolder$sourceFilename-DestinationC:\platformConfig.xml-jhmCopy-VMGuestFile-SourceC:\platformConfig.xml-jhm-DestinationA:\-VMVM-LocalToGuest-GuestUseruser-GuestPasswordpass2

Viewing all articles
Browse latest Browse all 251495

Trending Articles