Computer - Log off

Declaration

<AMCOMPUTER FORCE="YES/NO" />

Related Topics   

Description

Logs off, thus, ending the Windows session for the current user.

Practical usage

Example 1: Administrators could create and deploy a task with this action to force the system to Log Off at a certain time at night.

Example 2: A task could be built very easily that would Log Off the system quickly with just the press of a hot-key combination.

Parameters

General

Property Type Required Default Markup Description
Force log off without notifying applications Yes/No No No FORCE="YES" Is selected, specifies that the system should log off immediately without notifying and waiting for applications to return a message that they are ready to close. Disabled by default.

Description

Error Causes

On Error

Example

NOTE:
  • Copy and paste the sample AML code below directly into the Task Builder Steps Panel.
  • To successfully run the sample code, update parameters containing user credentials, files, file paths, or other information specific to the task to match your environment.

Description

This sample task logs off the local computer. Applications with unsaved changes are forcibly closed.  

Copy
<AMCOMPUTER FORCE="yes" />