Try -GuestToLocal
instead of -LocalToGuest
and make sure VMTools is installed and running. From the Copy-VMguestFile
documentation:
GuestToLocal - Indicate that you want to copy a file from the guest operating system of the virtual machine to a local directory.
LocalToGuest - Indicate that you want to copy a file from a local directory to the guest operating system of the virtual machine.