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

Copy-VMGuestFile - Error while trying to copy file from host to VM

$
0
0

I’m trying to use the following command to copy file from host to VM:

 

Copy-VMGuestFile -Source "$TestFilePath" -Destination "$DestinationPath" -LocalToGuest -Force -VM $Machinename -GuestUser "$VMGuestUserID" -GuestPassword "$VMGuestPassword" -ToolsWaitSecs -10 -Verbose

 

The problem is that I’m getting an error:

> WARNING: The guest OS for the virtual machine 'TestVM' is unknown. The operation may fail. Copy-VMGuestFile :  Copy-VMGuestFile  The guest operations agent could not be contacted.

 

After googling this error, in several posts, there was a recommendation to install VMWare tools. I did. But still copy file command is failing.

 

Virtual machine is Microsoft Windows 10 (64-bit). Firewall is off. VMWare tools is installed.

Powershell version 5.1.


Viewing all articles
Browse latest Browse all 229203

Trending Articles



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