Contact Info

Crumbtrail » Administration » Powershell » Powershell 2.0 » Copy-Item

Copy-Item - Powershell 2.0 CmdLet

Microsoft Windows PowerShell is a command-line shell and scripting tool based on the Microsoft .NET Framework. It is designed for system administrators, engineers and developers to control and automate the administration of Windows and applications.

More than hundred command-line tools (so called "cmdlets") can be used to perform system administration tasks and Windows Management Instrumentation (WMI). These cmdlets are easy to use, with standard naming conventions and common parameters, and standard tools for piping, sorting, filtering, and formatting data and objects.


Short description
Copies an item from one location to another within a namespace.

Copy-Item [-LiteralPath] <string[]> [[-Destination] <string>] [-Container] [-Credential <PSCredential>] [-Exclude <
    string[]>] [-Filter <string>] [-Force] [-Include <string[]>] [-PassThru] [-Recurse] [-Confirm] [-WhatIf] [-UseTrans
    action] [<CommonParameters>]
    Copy-Item [-Path] <string[]> [[-Destination] <string>] [-Container] [-Credential <PSCredential>] [-Exclude <string[
    ]>] [-Filter <string>] [-Force] [-Include <string[]>] [-PassThru] [-Recurse] [-Confirm] [-WhatIf] [-UseTransaction]

The Copy-Item cmdlet copies an item from one location to another in a namespace. Copy-Item does not delete the item
    s being copied. The particular items that the cmdlet can copy depend on the Windows PowerShell providers available.
     For example, when used with the FileSystem provider, it can copy files and directories and when used with the Regi
    stry provider, it can copy registry keys and entries.