Zoomed Image

Approving a Script

Endpoint Management Guide

Script Library

Approving a Script

An approver reads a script and signs it with the approver key on their own PC. A script can run once it has every approval the rule needs. Approve is on Endpoints > Endpoints Dashboard > Setup > Scripts, in the column of buttons above the Script Library list.

You must be an active approver. See Approvers and the Keyring.

Approve

  1. Choose Approve and pick the script. The message shows a two-digit number and the PCs that were asked.
  2. On each approver's PC the xAssets window opens with the whole script. Read it.
  3. Type the two digits and choose Approve. Choose Deny to refuse it, or I did not ask for this to refuse it and tell every approver.

Every active approver who has not approved the script is asked. The request lasts ten minutes. After that, choose Approve again. A wrong number asks again, three times at most.

Emergency Approval works the same way with one approver, for up to four hours. It must be allowed in the approver keyring.

Approved status

A script becomes Approved when it has the number of company approvals the rule sets (DMPCApproveLibraryCount, 2 by default). Only your own approvers count. xAssets staff approve nothing. Each approval lasts for the approval window (3 days by default). The window runs from the earliest signature. Runnable Until shows when it ends.

A worked example, with the default rule of two company approvals:

When What happens Status
Monday 09:00 Anna approves Pending
Monday 11:30 Ben approves Approved
Thursday 09:00 Anna's approval ends, 3 days after it was given The script can no longer run

To run it after Thursday 09:00, approve it again.

Run an approved script

Choose Run a Script, from these buttons or from Change on the action strip. The Run a Script dialog asks for the computers and the script. The Script list offers approved scripts only, and scripts under a live emergency approval.

The message reads "The script was sent to the selected computers". Follow the run in Activity > Jobs. See Run a Script.

A script run cannot be undone. A script can do anything, so xAssets cannot know how to take it back.

Things to check

Message What it means
"No approver PC could be asked" No approver has a PC set up, or everyone asked has approved it. See Approvers and the Keyring.
"This script is approved already" It has every approval it needs. It can run.

Key points

  • The author may be one of the approvers. Each company approval must come from a different person.
  • An edit clears every approval. Approvers then approve the new text.
  • The agent checks the approvals on the computer itself. A script that was approved when it was sent still fails there if its text was changed on the way.