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

Re: copy a file from desktop to VM using PowerCLI

$
0
0

Hello, -

Copy-VMGuestFile cmdlet.  So, that would be something like:

 

## get the creds to use for connecting to VM guest
$credMyGuestCred=Get-CredentialsomeUser
## copy file from local machine to D: drive on guest
Copy-VMGuestFile-VMmyVM0-LocalToGuest-Sourcec:\temp\mySourceFile.pdf-Destinationd:\newFileName.pdf-GuestCredential$credMyGuestCred

 

You can populate that value for the GuestCredential param as you please -- inline or whatnot.  Anyway, how does that do for you™?


Viewing all articles
Browse latest Browse all 230663

Trending Articles



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