SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Logon.exe opens the logon prompt and fails to fill password

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Logon.exe opens the logon prompt and fails to fill password
Author Message
damien.coraboeuf



Joined: 17 Jun 2010
Posts: 2
Country: Belgium

Post Logon.exe opens the logon prompt and fails to fill password Reply with quote
Hi,

I'm trying to test the logon.exe tool using a script like:

sleep 5s
c:\windows\logon.exe -p myPassword

I start the script, lock my station and wait.

The logon prompt is opened, I see the tool filling the password field and then this field is immediately erased...

I'm logged as Administrator on Windows XP SP2.

Do you see any reason why it fails?

Thanks,
Damien.
Thu Jun 17, 2010 7:42 am View user's profile Send private message
damien.coraboeuf



Joined: 17 Jun 2010
Posts: 2
Country: Belgium

Post Reply with quote
Fixed.

Actually, the logon.exe needs the keyboard layout of the logon prompt to be US (Qwerty).

This layout is independent from the user's current locale.

You can change this default layout by following instructions at http://www.windowsitpro.com/article/configuration/how-do-i-configure-the-default-keyboard-layout-during-login-.aspx

It did the trick for us.

It seems also that the logon.exe does not accept uppercase characters.

Regards,
Damien.
Thu Jun 17, 2010 9:46 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7952

Post Reply with quote
Quote:
Actually, the logon.exe needs the keyboard layout of the logon prompt to be US (Qwerty).


Yes and no, it emulates key presses by generating low level key press/release events using scan codes of QWERTY keyboard layout. See http://msdn.microsoft.com/en-us/library/aa928103.aspx for ideas. In case of some other keyboard layout you can feed it a password value which is literally different from the real password, but provides the same results. No changes needed in the layout. Here is what I mean, if your password is ZZZ and on your keyboard letter Z appears where letter Q is on the QWERTY keyboard, specify QQQ as the password value and it should work with our keyboard layout.

Quote:
It seems also that the logon.exe does not accept uppercase characters.


It should be able to handle special symbols and upper case characters of Latin alphabet (e.g QWERTY layout mapping). For such symbols/characters it first emulates key press of the Shift key, then key press of the character key, and then release of both keys.
Thu Jun 17, 2010 11:45 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.