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

Re: Copy file from desktop to virtual machine

$
0
0

Hello, VicMware-

 

Yes, there are ways to do so.  One way is via UNC path to an administrative share (like "D$").  This way, of course, assumes that the VM is on the network.

 

Another way, which does not depend on the guest OS being able to communicate on the network, is using the Copy-VMGuestFile cmdlet.  A quick example:

 

## get credentials for some account in the guest OS
$credGuestUser=Get-CredentialsomeLocalUser
## copy a file from the local machine to the given folder on D: in the guest
Copy-VMGuestFile-VMmyVM0-LocalToGuest-Sourcec:\temp\myFile.txt-Destinationd:\someFolder\-GuestCredential$credGuestUser

 

This relies on VMware Tools running in the guest OS.  See the cmdlet's help for other requirements/stipulations for using it.  How does that do for you?


Viewing all articles
Browse latest Browse all 197835

Trending Articles



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