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.
-setparams 
[DelayLogon=X]
[DelayLogonValue=X]
[EnableScheduler=X]
[AllowUsersConfigure=X]
[AllowAutologonInSafeMode=X]
[KeepComputerLoggedOn=X]
[KeepComputerUnlocked=X]
[LockPCAfterLogon=X]
[DelayPCLock=X]
[DelayPCLockValue=X]
[CancelAutologonByShift=X]
[ShowLogo=X]
[BypassLegalNotice=X]
Changes the LogonExpert settings.
The following options can be set to either 1 (turn on), or 0 (turn off):
EnableSchedulerEnables the built-in scheduler
AllowUsersConfigureAllows unprivileged users to configure LogonExpert
AllowAutologonInSafeModeAllows autologon when Windows loads in Safe Mode
KeepComputerLoggedOnKeeps the computer logged on
KeepComputerUnlockedKeeps the computer unlocked
LockPCAfterLogonLocks the computer after logon
CancelAutologonByShiftCancels autologon when SHIFT is pressed
ShowLogoShows the LogonExpert logo
BypassLegalNotice Bypasses the legal notice during autologon
Example: 
le.exe -setparams ShowLogo=0
Hides the LogonExpert logo.
The following options can be either set to the required number of seconds (turn on), or 0 (turn off):
DelayPCLockDelays the post-logon lock for X seconds
DelayLogonDelays logon on startup for X seconds
Example: 
le.exe –setparams DelayPCLock=60
Enables a post-logon lock delay and sets it to 1 minute.
Le.exe -setparams DelayLogon=0
Disables the pre-logon delay on startup
-? 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.
14 Error: No -setparams parameters specified.
15 Error: Unknown -setparams parameters.
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

Current version: 7.3.3.3 (what is new?)

.EXE Standard installation package .MSI (zipped) For deploying in a domain
File size: 8.34 Mb File size: 14.2 Mb
Supported OS:
Windows XP/2003/Vista/2008/7/2012/8/10/2016 (32/64bit)
Supported OS:
Windows Vista/2008/7/2012/8/10/2016 (32/64bit)

Download now Download now!

Download now Download now!