Skip to content

Copy File

Copy a file from one location to another

Required

Remember to include the [Download Content] PowerBrick when using $PackageRoot. Ex. $PackageRoot\setup.exe

Required

The full path of the destination file ex. C:\Temp\setup.exe

Required — Default: True

Overwrite existing destination file

  • Category: File and directory
  • Brick ID: File-Copy
{
"category": "fileAndDirectory",
"description": "Copy a file from one location to another",
"developerVendor": "CapaSystems A/S",
"displayName": null,
"id": "File-Copy",
"name": "Copy File",
"parameters": [
{
"defaultValue": "",
"defaultValueObject": null,
"description": "Remember to include the [Download Content] PowerBrick when using $PackageRoot. Ex. $PackageRoot\\setup.exe",
"id": "Source_File",
"name": "Source File",
"regExValidation": "",
"required": true,
"type": "TextBox",
"value": null,
"values": [],
"valuesObject": null
},
{
"defaultValue": "",
"defaultValueObject": null,
"description": "The full path of the destination file ex. C:\\Temp\\setup.exe",
"id": "Destination_File",
"name": "Destination File",
"regExValidation": "",
"required": true,
"type": "TextBox",
"value": null,
"values": [],
"valuesObject": null
},
{
"defaultValue": "True",
"defaultValueObject": null,
"description": "Overwrite existing destination file",
"id": "Overwrite_File",
"name": "Overwrite File",
"regExValidation": "",
"required": true,
"type": "Boolean",
"value": null,
"values": [],
"valuesObject": null
}
],
"powershell": {
"base64Encoded": true,
"function": "RnVuY3Rpb2..."
},
"type": "powerbrick",
"version": "2026.7.2.1"
}