Contact Info

Crumbtrail » Administration » Powershell » Powershell 3.0 » Copy-Item

Copy-Item - Powershell 3.0 CmdLet

ActiveXperts Network Monitor ships with integrated Powershell scripts to monitor complex network. The scripts run out of the box
Download the ActiveXperts Network Monitor FREE version now »


Short description
Copies an item from one location to another.

Copy-Item [-Path] <String[]> [[-Destination] <String>] [-Container] [-Credential <PSCredential>] [-Exclude <String[]>] 
[-Filter <String>] [-Force] [-Include <String[]>] [-PassThru] [-Recurse] [-Confirm] [-WhatIf] [-UseTransaction [<Switch
Parameter>]] [<CommonParameters>]
Copy-Item [[-Destination] <String>] [-Container] [-Credential <PSCredential>] [-Exclude <String[]>] [-Filter <String>] 
[-Force] [-Include <String[]>] [-PassThru] [-Recurse] -LiteralPath <String[]> [-Confirm] [-WhatIf] [-UseTransaction [<S
witchParameter>]] [<CommonParameters>]

The Copy-Item cmdlet copies an item from one location to another location in the same namespace. For example, it can co
py a file to a folder, but it cannot copy a file to a certificate drive.

Copy-Item does not cut or delete the items being copied. The particular items that the cmdlet can copy depend on the Wi
ndows PowerShell provider that exposes the item. For example, it can copy files and directories in a file system drive 
and registry keys and entries in the registry drive.

Copy-Item can copy and rename items in the same command. To rename an item, enter the new name in the value of the Dest
ination parameter. To rename an item without copying it, use the Rename-Item cmdlet.