# 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-29T06:55:26.872255Z

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

**Viewing existing records:** Use an administrator account with the relevant viewing permission; you do not need to create, publish or run a script merely to view records. Execution records are affected by the account’s current endpoint visibility and platform authorization settings. Changes to management scope or endpoint authorization may make some historical records disappear from the list. An absent record does not prove the script did not run or that the record was deleted. Verify the scope through your organization’s authorized process and check other available information. Check the relevant operation permissions separately when creating, publishing, running or canceling scripts. Under UEM applications, select “Enter” on the “Remote Scripts” card and select “Execution Records”. Review the pages as described under “Check Results and Stop”.

## Before You Begin

-   When creating or running scripts, use an administrator account with the permissions required for the intended operation. 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.

**Compatibility indication and target selection:** The compatibility indication in the script wizard and whether a target can be selected are separate checks. An endpoint actually running Windows may still be shown as incompatible; the indication alone does not establish its operating system or the script execution result. If the information disagrees, check the endpoint system information, authorization, and maintenance status and contact technical support. Do not change the endpoint name or run an impactful script merely to change the indication.

**Choose an execution context:** In the Windows path described here, **System Account** can be processed without an active user session, subject to endpoint connectivity and other execution conditions. **Current User** and **Administrator** require an available active user session and may wait without one. **Administrator** attempts elevation and may fail because of system confirmation, permissions, or environmental conditions; selecting it does not designate a particular administrator account or bypass system authorization. Permissions and accessible resources can differ among the three. Choose the least privilege needed and verify the actual execution identity, required resources, and results on controlled endpoints.

## Prepare and Run a Script

**Before publishing a new version:** Existing schedules retain the original script version. Publishing a new version of the same script can make the old version ineligible for creating execution tasks; existing schedules do not automatically switch to the new version. Tasks already created or waiting may still use the old content. Before publishing, inventory dependent schedules and tasks, assess the impact and prepare a migration. Afterwards, have an authorized person handle the old schedules under organizational procedures, recreate them with the new version if necessary, and verify the schedules, targets and pilot results. Neither an enabled schedule display nor a successful publication alone proves later tasks will run as intended.

**Form values and credentials:** Values entered in the wizard do not automatically become script command-line arguments; the script must read and handle its input in an appropriate way. A required marker does not guarantee that submission checks the value; verify required values and types against the script’s requirements before submitting. If form values are needed, confirm the method with the script owner or technical support and verify the actual input and results on a controlled endpoint. A password-type field masks input, but its value may appear in task details; it is not a credential vault. Do not put passwords, tokens or other secrets in the form, script or output. When credentials are necessary, use an organization-approved secure mechanism.

Selecting a group after searching selects its loaded eligible descendant endpoints, including endpoints not shown in the current search results; clearing the group can remove those endpoints as well. Changing the search does not automatically clear earlier selections. Before submission, clear the search, review endpoints and counts across all pages of the selected list, and remove unintended targets.

1.  Under **UEM** applications, select “Enter” on the “Remote Scripts” card. 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” from its row action menu. 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.  In the script library, find the published script and select “Open” from its row action menu to start the run wizard. Select a published script, fill any required form, pick at least one target, and set execution identity under “Execution context”, 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.

**Timeout and switching scripts:** A new script initially has a timeout of `900` seconds; the script editor accepts `60` to `3600` seconds. The run wizard brings in the selected script's timeout. Switching scripts or loading script details can reset entered timeout, execution identity, reason, parameters and schedule settings; the run mode can also revert to immediate execution. Select the script before entering settings. Before submitting, review each step, including the script, targets, run mode, time and other parameters. If anything cannot be confirmed, do not submit; reopen the wizard and check again.

## 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.

The weekday or day of month selected for a recurring schedule is also evaluated using the UTC calendar; conversion to endpoint local time can cross a day or month boundary. For example, selecting Monday at `20:00` means Monday `20:00 UTC`, corresponding to Tuesday `04:00` in a fixed UTC+08:00 zone. This is a time-conversion example, not a guarantee that the task starts then. Before submitting, check the date, time zone and maintenance window, and pilot with a non-destructive script.

**Initial schedule values:** When the wizard initializes or reloads script details, a one-time schedule may be prefilled for approximately 15 minutes later; that time may already have passed after waiting or switching. A recurring schedule initially defaults to daily at `03:00`, calculated in UTC as described above. These values are not an approved maintenance window. After choosing a schedule, recheck the date, time, frequency, time zone and targets, and adjust them to the approved plan before submitting.

**Recurring schedules and recovery:** The monthly day is set from 1 through 28 in the page. If service or scheduling is delayed, a due schedule may create a task only after recovery. A recurring schedule does not guarantee a separate catch-up task for every missed time, and the next time may be recalculated from when processing resumes. If a task is created but the schedule status fails to update, duplicate tasks may be created. Design scripts to be safe to repeat; where repetition is unacceptable, use a verified deduplication measure. After an incident, check the schedule, execution tasks and each endpoint’s actual result before deciding whether to make up an execution; do not rerun blindly.

**Changes to schedule targets:** A schedule retains the endpoints selected when it was created. A target later entering maintenance mode or changing authorization, or the creator leaving, being disabled or losing permissions, must not be treated as automatic cancellation. The schedule may still create tasks, although actual execution depends on other conditions. Before personnel handover, endpoint retirement or maintenance, have an authorized person review and handle the affected schedules as described below and check tasks already created or in flight. Do not rely solely on changing administrator permissions or endpoint maintenance mode to block execution.

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.  In “Execution Records”, review the script, status and stage for each endpoint page by page. Column sorting applies only to the current page, not all records. To inspect task details or available output, find and open the corresponding task in “Execution Tasks”, then check its target endpoints and execution logs. A created task does not prove every endpoint succeeded; handle potentially sensitive output according to permissions. The stage in this list is derived from the status, not an independent detailed execution progress report. To identify who actually initiated a cancellation, verify it using other authorized information.
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.  **Schedule enable/disable limitation:** Do not rely solely on the enable or disable status in the schedule list to establish that a schedule has stopped; the status may revert on reload and the schedule may continue creating tasks. To stop future scheduling, first assess the impact and have an authorized person follow organizational procedures; if necessary, delete the schedule and reload to verify. Check and handle already created or in-flight execution tasks separately; deleting the schedule does not guarantee they stop. Record errors or inconsistent status and contact support rather than treating one success message as proof that endpoints stopped or the risk is resolved.

**Completeness of execution output:** An endpoint summary may show standard output preferentially without displaying error output. Parts of the log stream may also be missing if reporting fails or output is excessive. A summary without error text, an empty log or an incomplete log does not prove that the script ran without errors or did not run. Check task status, available logs and authorized endpoint or business evidence together. If complete records are required, plan and validate an organization-approved recording method in advance and protect sensitive information.

**Execution record time:** The “Created” column in the record list is not necessarily the task creation time. Depending on available information, it may show the endpoint’s end, start, acceptance or creation time, and the displayed value may change as the status updates. Do not use this column alone to establish when a task was created or completed; check the task details, execution logs and actual endpoint state together.

**Searching execution records:** Enter a keyword for the script name, the endpoint name saved in the record, the endpoint identifier or the recorded IP. The query is not limited to the current page; changing the keyword returns to page one. Results remain subject to the account’s visibility and authorization. The endpoint name displayed in the list may use its current display name, while the search uses the name saved with the record. After an endpoint rename or a change in display-name settings, searching for the current name may miss earlier records. Clear the keyword and check the pages, or try the script name or previous endpoint name and confirm against task details. An empty search does not prove that the script did not run.

If execution records fail to load, the page may clear the list and total; an empty list does not mean there are no records. Check permissions, network connectivity, and the page error, switch to another tab and return to the execution records, then wait for the reload and check the keyword and page number. If the result remains uncertain, cross-check the task details and target endpoint and contact technical support if needed; do not rerun the script solely because the list is empty.
