Click here to Skip to main content
Rate this: bad
good
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
 
regards,
Patrick
Posted 16-Jan-12 5:06am
Comments
JunWoo Park at 16-Jan-12 13:17pm
   
is this even feasible?

many thanks in advance

1 solution

Rate this: bad
good
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:
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!
  Permalink  
Comments
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 365
1 Sergey Alexandrovich Kryukov 334
2 CPallini 275
3 DamithSL 230
4 Maciej Los 215
0 OriginalGriff 5,455
1 DamithSL 4,457
2 Maciej Los 3,885
3 Kornfeld Eliyahu Peter 3,480
4 Sergey Alexandrovich Kryukov 3,115


Advertise | Privacy | Mobile
Web03 | 2.8.141216.1 | Last Updated 16 Jan 2012
Copyright © CodeProject, 1999-2014
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