VMware Cloud Community
downatone
Contributor
Contributor

How to copy file from local machine to virtual machine?

I have VI Toolkit v1.5 installed. Been looking through the cmdlet reference and can't see a cmdlet that would allow me to copy a file from host to guest.

Is there a way to do this that I am missing?

Using the VIX api I could call the CopyFileFromHostToGuest() function.

Reply
0 Kudos
4 Replies
yboychev
Hot Shot
Hot Shot

With VITK 1.5 there is no such cmdlet available. It is in our roadmap for one of the upcomming releases.

admin
Immortal
Immortal

If you want a PowerShell-based solution you can use until we have this as a cmdlet, check out this blog entry.

Reply
0 Kudos
downatone
Contributor
Contributor

Thanks for the reply.

I had started creating my own cmdlet to copy files based on a VIX wrapper I had written ...

Just to confirm, the cmdlet add-type is only available in Powershell v2 right? Otherwise this would be an interesting alternative.

Reply
0 Kudos
admin
Immortal
Immortal

Yes, Add-Type is v2 only.

Reply
0 Kudos