Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

https://docs.microsoft.com/en-us/powershell/module/hyper-v/copy-vmfile?view=win10-ps

First make sure to install "Integration Services"

Then enable all services in Hyper-V:

Confirm Service Available on Host:

ps -u root | grep hyper #Look for hypervfcopyd
ps -u root | grep hv    #Used on newer systems, look for hv_fcopy_daemon


Now use PowerShell to move File:

Copy-VMFile -Name OpenProject8.3 -SourcePath 'C:\tmp\attachments-20200212010002.tar.gz' -DestinationPath '/tmp/' -FileSource Host

Copy Entire Folder Contents:

$VMName="OpenProject8.3"
$SFolder="C:\tmp"
$DFolder="/tmp"
Get-ChildItem $SFolder -Recurse -File | % { Copy-VMFile -Name "$VMName" -SourcePath $_.FullName -DestinationPath $DFolder -FileSource Host }
  • No labels