# Manage and Run Remote Scripts

Canonical: https://www.nsecsoft.com/en/docs/ping64-endpoint-management/uem/maintenance/remote-scripts/

Language: en-US

Updated: 2026-11-15T03:18:59.098589Z

Remote Scripts manages scripts, starts execution on managed Windows endpoints, and displays results. Scripts can change devices, data, and security settings; use organizational approval, least privilege, and change procedures. Saving, publishing, creating a task, and actual endpoint execution are separate stages.

## Before You Begin

-   Use an administrator account with the required endpoint-management read, write, and operation permissions. Confirm endpoint authorization, management scope, Windows environment, and maintenance status. Select controlled pilot endpoints and prepare recovery and maintenance arrangements. The script wizard’s target selector does not allow endpoints in maintenance mode to be selected. A maintenance window is not the same as endpoint maintenance mode. Assess the impact under organizational procedures before changing the mode; do not exit it without authorization.
-   Review script origin, content, parameters, execution identity, timeout, dependencies, and potential effects. Avoid unnecessary passwords or sensitive data in scripts, parameters, or output. System Account and Current User have different privileges; choose and assess them for the task.
-   For scheduled execution, confirm time, time-zone basis, recurrence, and targets. Offline endpoints or missing user sessions may wait; creating a task does not mean immediate completion.

## Prepare and Run a Script

1.  Under Unified Endpoint Management applications, open “Remote Scripts”. In “Script Library”, choose “New Script”, enter name, description, interpreter, content, and required settings, and select “Save Script”. Use reviewed scripts only; PowerShell and CMD are supported.
2.  Recheck the saved item in the library and select “Publish”. Only published script versions can be started. After editing, verify the actual published version; do not assume existing tasks or schedules use the new content.
3.  Select “Open” to start the run wizard. Select a published script, fill any required form, pick at least one target, and set execution identity, timeout, and reason. First choose “Run Now” and pilot endpoints, review, and create. For “Run Once Later” or “Recurring Schedule”, also verify time, time-zone basis, and recurrence.
4.  Reload “Execution Tasks” or “Schedules” and check script, targets, status, and time. If a loading or request error appears, a subsequent success message or local display alone does not prove success. Reload and verify stored records before deciding what to do; do not resubmit while the outcome is unclear.

## Scheduled Execution and Time Zones

The interface offers “Server Unified Time” and “Endpoint Local Time”, but selecting “Endpoint Local Time” does not mean each endpoint runs in its own time zone. A recurring schedule interprets the entered time as UTC: for example, 09:00 corresponds to 17:00 in UTC+08:00. A one-time schedule converts the entered time from the local time zone of the computer operating the management console to one common instant, not separately for each target.

Before creating a schedule, convert and verify the time, targets, and maintenance window. Test a non-destructive script on pilot endpoints before expanding the scope. A due schedule does not mean all endpoints finish simultaneously; offline status, a missing user session, or other execution conditions can delay execution. Check each endpoint's result.

## Check Results and Stop

1.  Open a task in “Execution Tasks” or “Execution Records” and inspect each endpoint’s waiting, running, success, failure, timeout, or incompatible status and available output. A created task does not prove every endpoint succeeded; handle potentially sensitive output according to permissions.
2.  Before cancellation, confirm all task targets and business effects. Cancellation applies to the whole task, not only the current filter or page. Changes already made by a script do not automatically roll back, and dispatched or running targets may need time to process cancellation. Reload and check each result; contact an administrator if unclear.
3.  Check schedule enabled status and later executions separately. Disabling or deleting a schedule does not undo already created tasks. If saving, publishing, cancellation, or deletion reports an error or inconsistent status, record it and contact support; one success message does not prove endpoints stopped or the risk is resolved.
