Help – Command Line Tool

Command line parameters for le.exe

Parameter Description
/lock Locks the computer no matter what user is logged on.
/logon [username password] [domain] Logs on a user whose credentials are stored in the LogonExpert settings or specified as the optional parameters. Also can be used for unlocking the computer. Fails to if the credentials cannot be validated Credentials validation uses built-in Windows capabilities and can fail only if the credentials are invalid on both the workstation and the domain. by LogonExpert.
/logoff [username] Logs off a user whose credentials are stored in the LogonExpert settings or specified as the optional parameter. Performs no action if the user is not logged on (and/or another user is logged on).
/logoff * Logs off all currently logged on users
/setcredentials username [password] [domain] Overrides the credentials stored in the LogonExpert settings. Fails to if the credentials cannot be validated Credentials validation uses built-in Windows capabilities and can fail only if the credentials are invalid on both the workstation and the domain. by LogonExpert.
/force Forces LogonExpert to use the credentials defined with /logon and /setcredentials even if they failed to be validated. Credentials validation uses built-in Windows capabilities and can fail only if the credentials are invalid on both the workstation and the domain.
/enable Enables automatic logon by checking the Enable automatic logon check box on the Logon Settings tab.
/disable Disables automatic logon by unchecking the Enable automatic logon check box on the Logon Settings tab.
/t xx Defines a logon/logoff timeout (in seconds). Uses the default value of 120 seconds if the parameter is not set. Exit code 3 is returned if a logon/logoff cannot be performed by LogonExpert within the specified time.
/? Lists the above parameters.

Return codes for le.exe

The le.exe tool may return one of the following exit codes.

Return Code Description
0 The command has been executed successfully.
1 Error: The required files have not been found. Please reinstall LogonExpert.
2 Error: The logon credentials cannot be validated Credentials validation uses built-in Windows capabilities and can fail only if the credentials are invalid on both the workstation and the domain. .
3 Error: The user cannot be logged on/logged off within the allotted time.
4 Error: The logon cannot be performed as another user is already logged on.
5 Error: The computer cannot be locked as no user is logged on.
6 Error: The LogonExpert service is not installed or running. LogonExpert might not have been installed properly.
7 Error: This action cannot be performed due to the license being invalid. Please launch LogonExpert Administrator for additional information.
8 Error: You do not have appropriate rights to run LogonExpert. Please launch LogonExpert Administrator and configure the rights on the Security tab.
9 Error: The logon has been interrupted with the Shift key.
11 Error: The computer is already locked.
12 Error: The computer is already unlocked.
13 Error: The logon has been interrupted.
Notes
  • If you instruct the tool to execute a logon/logoff/lock command when the user is already logged on/logged off/the computer is locked, exit code 0 is still returned.
  • The tool takes control over the console and returns it only after a command is successfully executed/an error occurs/the time set with the /t parameter is up.
  • On Windows XP/Server 2003: LogonExpert does not perform a logon if any user is already logged on (locally or remotely).
  • On Windows Vista and later: If the /logon switch is used when one user is logged on locally, their session will be disconnected (as if Fast user switching was used) and the other user will be logged on by LogonExpert.

Download LogonExpert

File Name: LogonExpertSetup.exe
Current version: 7.2 (what is new?)
File size: 7.82 Mb
Supported OS: Windows XP/2003/Vista/2008/7/2012/8/10/2016 (32/64bit)

Download now Download now!