Click here to Skip to main content
15,867,594 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all,

I wrote a java program which runs on my computer that uses RMI to connect to a remote computer and run a short vbs script. Both computers have Windows XP, and I am an administrator on my computer but I am only a user on the remote computer. So I have a triggering program on my desktop and a listener program running in the remote computer which works as I expected.

But I am now facing a problem that the remote computer frequently reboots and the computer stays idle on Logon page. At this stage, my listener program is not executed (I have a batch file that runs the listener program when the window<big></big> starts). So I either manually have to go to this computer and logon OR I remote logon using Window's "Remote Desktop Connection" to logon and disconnect after I execute my listener program.

Unfortunately I am not in a position to change much administrative settings or change reboot frequency of the remote computer. So I want to write a script / program that will remotely logon (not unlock) which will work under the environment described above.

Can anyone describe to me how I can write a remote logon program?
I would appreciate any technical direction

Thank you for your time and idea

regards,
Patrick
Posted
Comments
JunWoo Park 16-Jan-12 13:17pm    
is this even feasible?

many thanks in advance

1 solution

I believe this is possible, but I haven't tested it (no appropriate environment here). If you use mstsc.exe (which has a command line interface - just use the /? option) you can recall a saved RDP file (this part I have done), and that file can contain an encrypted password so that the entire login is automatic. If you then have automated running your listener, I think you're set if I understand your question correctly.

The only iffy part here is how to get your password saved in the RDP, but this should help:
http://www.tech-archive.net/Archive/WindowsCE/microsoft.public.windowsce.embedded/2008-06/msg00015.html
and
http://www.remkoweijnen.nl/blog/2007/10/18/how-rdp-passwords-are-encrypted/

good luck!
 
Share this answer
 
Comments
JunWoo Park 17-Jan-12 9:56am    
I looked at .RDP file before but I moved on because I thought .RDP doesn't support password settings. From your article it seems like it does in hashed form. I haven't got it to work yet, but thank you for the direction Uilleam.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900