This is the built-in help made by Microsoft for the command 'Copy-VMFile', in PowerShell version 5 - as retrieved from
Windows version 'Microsoft Windows Server 2012 R2 Standard' PowerShell help files on 2016-06-23.
For PowerShell version 3 and up, where you have Update-Help, this command was run just before creating the web pages from the help files.
Copies a file to a virtual machine.
Copy-VMFile [-Name] <String> [-SourcePath] <String> [-DestinationPath] <String> [-AsJob] [-ComputerName <String>] [-CreateFullPath] [-Force] -FileSource
<CopyFileSourceType> [-Confirm] [-WhatIf] [<CommonParameters>]
Copy-VMFile [-VM] <VirtualMachine> [-SourcePath] <String> [-DestinationPath] <String> [-AsJob] [-CreateFullPath] [-Force] -FileSource <CopyFileSourceType> [-Confirm]
The Copy-VMFile cmdlet copies a file to a virtual machine.
Online Version: http://go.microsoft.com/fwlink/?LinkId=285776
PS C:\> Copy-VMFile "Test VM" -SourcePath "D:\Test.txt" -DestinationPath "C:\Temp\Test.txt" -CreateFullPath -FileSource Host
This example copies the file “test.txt” from the host operating system into the guest operating system of the virtual machine “Test VM”. It will create the directory
“C:\Temp” inside the guest operating system if it does not exist already.