> For the complete documentation index, see [llms.txt](https://docs.booldesk.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.booldesk.com/how-to-use-modules/configuration-policies/run-a-script-or-send-a-file-policy.md).

# Run a script or send a file policy

**Overview**

The "Run Script" feature allows you to execute PowerShell or batch scripts on managed devices without initiating a remote session. You can choose to run these scripts in the background (as a Service Account) or interactively (as the Current User). This is ideal for tasks like clearing caches, mapping drives, or gathering custom system data.

#### **Step-by-Step Guide**

**1. Navigate to Device Actions**

Select the target computer(s) for the script.

* From the main menu, go to Devices > Computers (1).
* Select the checkbox (3) next to the specific computer (e.g., `WIN-OEA8...`).
* Click the Actions button (1) at the top of the list.
* Hover over Scripts & Files (2) and select Run Script (3).

<figure><img src="https://1656339521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbuVnkK2LsQssipBV5XZc%2Fuploads%2FGmpkir9Kx8EAHKMf31xh%2Fimage.png?alt=media&amp;token=4dfc85d0-ee33-4691-89e5-f9de40245633" alt=""><figcaption></figcaption></figure>

<figure><img src="https://1656339521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbuVnkK2LsQssipBV5XZc%2Fuploads%2FCccyPukuD7qmAcPcRVGO%2Fimage.png?alt=media&amp;token=9ba8366d-c170-46a7-beb0-7fe09d55b38d" alt=""><figcaption></figcaption></figure>

**2. Configure Script Execution**

In the "Run Script" window, define *what* to run and *how* to run it.

* Deployment Name: Give the task a clear name (e.g., `Run Ping Script`).
* Select Script: Choose a pre-uploaded script from the dropdown menu (e.g., `ping`).
* Execution Context: Choose the permission level:
  * Service Account: Runs in the background with system privileges (invisible to the user).
  * Current User: Runs only when a user is logged in, using their specific permissions.
* Schedule & Reporting: Set a Start Time if you want it to run later, and enter an email address in Send Report To to receive a confirmation when the script finishes.
* Click Submit to execute.

<figure><img src="https://1656339521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbuVnkK2LsQssipBV5XZc%2Fuploads%2F4gNVAEDVPDzk40eDrWHF%2Fimage.png?alt=media&amp;token=0cd1240a-f2fc-4f48-b554-14d72b973c1c" alt=""><figcaption></figcaption></figure>

**3. Navigate to Device Actions**

Select the target computer(s) for the script.

* From the main menu, go to Devices > Computers (1).
* Select the checkbox (3) next to the specific computer (e.g., `WIN-OEA8...`).
* Click the Actions button (1) at the top of the list.
* Hover over Scripts & Files (2) and select Send File (3).

<figure><img src="https://1656339521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbuVnkK2LsQssipBV5XZc%2Fuploads%2Feo4WDd8WTPQqHkRlKD9z%2Fimage.png?alt=media&amp;token=503ac5cc-dcbc-4224-bdf4-b1a303b1c881" alt=""><figcaption></figcaption></figure>

**4. Configure File Transfer**

In the "Send File" window, upload your file and choose its destination.

* Policy Name: Name the transfer task (e.g., `Send the BoolDesk Logo`).
* File Source: Click Attach a file to upload the item you want to send (e.g., `booldesk-logo.png`).
* Destination: Select a predefined location like User Desktop (which puts it on the visible desktop of the logged-in user) or specify a custom path.
* Schedule: Like scripts, you can schedule this for a specific time (e.g., `January 20th, 2026`).
* Click Submit to transfer the file.

<figure><img src="https://1656339521-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FbuVnkK2LsQssipBV5XZc%2Fuploads%2FwzNSqLubyUyXmnQruVGU%2Fimage.png?alt=media&amp;token=68287390-9f8e-4b87-84e3-ec72e5e2edb7" alt=""><figcaption></figcaption></figure>
