PALATINELABSDocsENES

Pages

↑↓ to moveEnter to openEsc to close

System package guide

Read a process environment value or request a local Windows session and power change.

Version 2.17.1. Installed versions can differ. Examples are illustrative and not tested.

Jump to actions

Packages

Prerequisites

Install the package on the Device. Lock, Logoff, Restart and Shutdown act on the current computer and Windows session. Save all work first. Restart, Shutdown and Logoff need the Windows right to shut down the computer; without it they fail.

These actions do not wait and cannot be cancelled or scheduled. Put them last in the automation, and test them on a test Device. Lock needs a signed-in desktop session. Windows can refuse a request; the action then fails.

Shared fields

Logoff, Restart and Shutdown use this field.

InputEditor fieldType; default; requirementUse
forceForce applications to close without savingBooleandefault falseoptionalfalse asks applications to close normally; an application can refuse. true closes them by force and can lose unsaved data. It does not give missing Windows rights.

Actions

Get environment variable (systemInformation)

Read one environment variable of the current process, such as SystemRoot. Nothing changes.

Inputs

InputEditor fieldType; default; requirementUse
variableOptionSourceNameSourcedefault BY_SELECTIONoptionalBY_SELECTION reads systemNameBySelection⁠; BY_TEXT reads systemNameByText⁠. The other field is ignored.
systemNameBySelectionEnvironment variable listStringdefault emptyrequired in stated branchFor BY_SELECTION⁠: a name that is not empty, such as SystemRoot⁠; outer spaces are removed. An empty name fails.
systemNameByTextVariableStringdefault emptyrequired in stated branchFor BY_TEXT⁠: a name such as SystemRoot⁠, or a String variable that holds it. Do not add % marks.

Outputs

OutputTypeMeaning
resultStringThe value, or empty if not set.

Example

Set variableOption=BY_TEXT and systemNameByText=SystemRoot. Bind result to String variable windowsFolder.

Expected result

windowsFolder is usually C:\Windows. The value depends on the Device.

Back to actions

Lock computer (systemLock)

Lock the screen. The user stays signed in, but a person must unlock the screen before desktop steps can run.

Inputs

No inputs.

Outputs

No output variables.

Example

Put it as the last step.

Expected result

Windows shows the lock screen. The action does not wait for unlock.

Back to actions

Logoff (systemLogoff)

Sign out of Windows. The session ends; work in it can be interrupted.

Inputs

Uses the shared fields.

Outputs

No output variables.

Example

Put it as the last step, with force=false. Use force=true only if open applications and unsaved data can be lost.

Expected result

Windows gets the sign-out request. The action does not confirm that it finished. An application can block it when force=false.

Back to actions

Restart (systemRestart)

Restart the Device. The current Run can be interrupted.

Inputs

Uses the shared fields.

Outputs

No output variables.

Example

Put it as the last step, with force=false.

Expected result

Windows gets the restart request. The action does not confirm that it finished. An application can block it when force=false.

Back to actions

Shutdown (systemShutdown)

Shut down the Device. The current Run can be interrupted.

Inputs

Uses the shared fields.

Outputs

No output variables.

Example

Put it as the last step, with force=false.

Expected result

Windows gets the shutdown request. The action does not confirm that it finished. An application can block it when force=false.

Back to actions