---
title: "Run a server script"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/automation/run-a-server-script/
type: task
application: platform
last_updated: 2026-10-18
commit: f37120b6b82b
---


Run a server script for one-off server logic, such as testing a trigger, fixing records in bulk, checking a set of records or trying an integration call. Administrators and developers use it with the same syntax as triggers and script libraries.

## Before you begin

- You need the `administrator` role.
- A server script changes live data. Try a bulk change on a test instance first.
- Have the script ready. The objects it can use are in [Table](page:api/scripting/table) and [DateTime](page:api/scripting/datetime).

## Steps

<Steps>
  <Step>
    In the Admin Console, select **Administration → Administrator tools → Server script**.

    <Image src="asset:screenshots/admin/automation-run-a-server-script/image.png" size="30">The Administrator tools menu with Server script.</Image>
  </Step>
  <Step>
    Enter the script in the **Server script execution** box.
  </Step>
  <Step>
    Right-click in the box and select **Execute**.

    <Image src="asset:screenshots/admin/automation-run-a-server-script/image-2.png" size="44">The Execute menu item in the Server script execution box.</Image>
  </Step>
  <Step>
    Read the output at the bottom of the box. Anything the script writes with `log` appears there.

    <Image src="asset:screenshots/admin/automation-run-a-server-script/image-3.png" size="38">Log output shown below the script.</Image>
  </Step>
</Steps>

## Result

The script has run once on the server, and its log output is shown below it. Any records it created, updated or deleted are changed straight away, and their triggers ran unless the script turned them off.

<Image src="asset:screenshots/admin/automation-run-a-server-script/image-4.png" size="46">A script that writes each incident in New status to the log.</Image>

## Related

- [Where scripts run](page:automation/scripting-overview)
- [Triggers](page:automation/triggers)
- [Script libraries](page:automation/script-libraries)
- [TableProtected and TableChecks](page:api/scripting/table-checks)
