# Copy File To All User Profile Directories

> Copy a file to all user profile directories.

Source: https://docs.capaone.com/capaone/application-manager/powerbricks/copy-file-to-all-user-profile-directories/  
Product: CapaOne — a separate CapaSystems product; do not apply this page to any other.

Copy a file to all user profile directories

## Parameters

#### Source File
*Required*

Remember to include the [Download Content] PowerBrick when using $PackageRoot. Ex. $PackageRoot\UserProfileRoot\Desktop\Manual.pdf

#### Destination File
*Required*

The partial path to the destination file. Ex. Desktop\Manual.pdf or AppData\Roaming\Notepad++\shortcuts.xml

#### Overwrite File
*Required* — Default: `True`

Overwrite existing destination file

## Details

- **Category:** File and directory
- **Brick ID:** `File-CopyToAllUsersProfiles`

## Raw JSON definition

**JSON**

```json
{
  "category": "fileAndDirectory",
  "description": "Copy a file to all user profile directories",
  "developerVendor": "CapaSystems A/S",
  "displayName": null,
  "id": "File-CopyToAllUsersProfiles",
  "name": "Copy File To All User Profile Directories",
  "parameters": [
    {
      "allowManualInput": null,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "Remember to include the [Download Content] PowerBrick when using $PackageRoot. Ex. $PackageRoot\\UserProfileRoot\\Desktop\\Manual.pdf",
      "id": "SourceFile",
      "name": "Source File",
      "regExValidation": "",
      "required": true,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": null,
      "defaultValue": "",
      "defaultValueObject": null,
      "description": "The partial path to the destination file. Ex. Desktop\\Manual.pdf or AppData\\Roaming\\Notepad++\\shortcuts.xml",
      "id": "DestinationFile",
      "name": "Destination File",
      "regExValidation": "",
      "required": true,
      "type": "TextBox",
      "value": null,
      "values": [],
      "valuesObject": null
    },
    {
      "allowManualInput": null,
      "defaultValue": "True",
      "defaultValueObject": null,
      "description": "Overwrite existing destination file",
      "id": "OverwriteFile",
      "name": "Overwrite File",
      "regExValidation": "",
      "required": true,
      "type": "Boolean",
      "value": null,
      "values": [],
      "valuesObject": null
    }
  ],
  "powershell": {
    "base64Encoded": true,
    "function": "ZnVuY3Rpb2..."
  },
  "type": "powerbrick",
  "version": "2026.7.2.1"
}
```
