Syntax
Copy-DatastoreItem [-Item] <Object[]> [[-Destination] <Object>] [-Force] [-PassThru] [-Recurse] [-WhatIf] [-Confirm] [<CommonParameters>]Related Commands
Online versionDetailed Description
Copies items between datastores and between a datastore and a local file system provider.Parameters
Return Type
FileInfo or DatastoreItemNotes
Supported only on servers that are ESX 3.5 and vCenter 2.5, and higher.Examples
-------------- Example 1 --------------
Copy-DatastoreItem ds:\VM\* c:\VMFolder\VM\
Copies all items in the VM folder in the datastore provider locally to c:\VMFolder\VM\.
-------------- Example 2 --------------
Copy-DatastoreItem c:\VMFolder\NewVM\* ds:\VM\ -Force
Copies all files in the NewVM local folder to the VM folder in the datastore provider.