Copying a file from host OS to Hyper-V VM

To easily copy a file which is not an ISO from host OS to Hyper-V VM, do the following:

1. Right-click on the virtual machine, and choose the Settings command from the shortcut menu, you will be taken to the virtual machine’s Settings screen.  Click on the Integration Services option and you will notice that there is an integration service called Guest Services and enable it. Guest Services allow files to be copied to the virtual machine through the VMBu.

2. Copy-VMFile “Test VM” -SourcePath “D:\Test.txt” -DestinationPath “C:\Temp\Test.txt” -CreateFullPath -FileSource Host