Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
See more: VBScript Perl
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

Posted 16-Jan-12 5:06am
JunWoo Park at 16-Jan-12 13:17pm
is this even feasible?

many thanks in advance

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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:

good luck!
JunWoo Park at 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)

  Print Answers RSS
0 OriginalGriff 475
1 Sergey Alexandrovich Kryukov 405
2 Maciej Los 290
3 ProgramFOX 265
4 CHill60 200
0 OriginalGriff 490
1 Sergey Alexandrovich Kryukov 405
2 Maciej Los 285
3 ProgramFOX 265
4 Peter Leow 210

Advertise | Privacy | Mobile
Web01 | 2.8.150331.1 | Last Updated 16 Jan 2012
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100