Table of Cmdlet Parameters

< Back

Parameters for Copy-Item Cmdlet
ParameterFunction
-pathSpecifies the path to the items to copy
-destinationSpecifies the path to where the items are to be copied
-containerPreserves container objects during the copy operation
-recurseSpecifies a recursive copy
-forceAllows cmdlet to override restrictions such as renaming existing files as long as security is not compromised
-includeSpecifies only those items upon which the cmdlet will act, excluding all others
-excludeOmits the specified items. Wildcards are permitted.
-filterSpecifies filter elements
-passThruPasses the object created by this cmdlet through the pipeline. By default, this cmdlet does not pass any objects through the pipeline.
-credentialThe credential is used to validate access
-literalPathSpecifies a path to the item. The value of -LiteralPath is used exactly as it is typed.
-whatIfDescribes what would happen if you executed the command without actually executing the command.
-confirmPrompts you for confirmation before executing the command
<CommonParameters>This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, and -OutVariable.

< Back

Nguồn: copy-itemparameters.htm (bản mirror trong original/)