> 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="/files/RuGwawhM6VvxpujDqRcB" alt=""><figcaption></figcaption></figure>

<figure><img src="/files/7G2mRpOzWebP4Y0XdvtX" 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="/files/j3UXLHA8brL0QapcOVP4" 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="/files/UjjlC5a3vrQW34XbI5TX" 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="/files/OX11i8tOG3gfQGTD36se" alt=""><figcaption></figcaption></figure>
