VMware Cloud Community
modonnellAgFirs
Contributor
Contributor

Copy-VMGuestFile to retrieve a folder and contents from a VM

Anyone had any luck with this?  I'm getting "

Copy-VMGuestFile : 12/8/2016 9:39:41 AM    Copy-VMGuestFile        The object C:\test\myfolder\ is

not a file.    "

Is this even supported?  I can copy a folder from local to the VM, but I cant get it back. 

Reply
0 Kudos
1 Reply
jpsider
Expert
Expert

You will need to wildcard the folder you are trying to copy.

Check out the example in the docs:

vSphere 6.0 Documentation Center

Reply
0 Kudos