|
-
March 8th, 2010, 10:58 AM
#1
Controlling Windows Remote Desktop
Hi Folks
I am trying to overcome a problem I am having with remote desktop.
Basically I have 2 machines running in different locations. I use remote desktop to access one of them (the "Remote Machine") from the other.("My PC")
The "Remote Machine" is performing automated tasks that require the screen to be active, not the user login screen.
When I do so the Remote Machine logs off and presents the normal windows login screen.
When I am finished reviewing the remote machine I log off and then I need to log back into the
"remote" machine. It has no monitior but I can log in by pressing the enter key which sends a keypress to log into the user account( there is only one). In fact I do this the other way around. I press the enter key on the "Remote Machine" and this logs the user back in - terminating the remote session on "MyPC".
The problem is I have to physically go to the Remote Machine to press this enter key.
This is a hassle - One solution is to remotely re-boot the remote pc but the lead time involved is too great.
I am unable to fix this problem by tweaking setting or registry hacks so I guess the solution must be to cause the remote user to log back in programatically.
I am an experienced VB user but I have never worked outside the windows environment. Ideally I would like to programmtically send a keystroke "{enter}" to the login screen but this doesn't work.
If anyone could point me in the right direction I would be grateful
-
March 8th, 2010, 07:00 PM
#2
Re: Controlling Windows Remote Desktop
-
March 9th, 2010, 05:44 AM
#3
Re: Controlling Windows Remote Desktop
 Originally Posted by dglienna
This Live Mesh is very impressive. It give you access to all your pcs using the net and your live id. This is really useful if you are at work and need to get at your machine at home. It works a lot like remote assistance but is a lot easier to set up.
Thanks for you help
It doesn't fix my problem though as the remote machine still blanks to the user login screen when I log off and it is much less reponsive as it is web based.
-
March 9th, 2010, 10:15 PM
#4
Re: Controlling Windows Remote Desktop
For XP, you can use TweakUI to auto-login, if that's what you want. Doubt you can with Windows 7, though.
EDIT: Why log off at all, then?
-
March 10th, 2010, 07:36 AM
#5
Re: Controlling Windows Remote Desktop
 Originally Posted by dglienna
For XP, you can use TweakUI to auto-login, if that's what you want. Doubt you can with Windows 7, though.
EDIT: Why log off at all, then?
Thanks for replying dglienna.
When I log in on the main machine the remote machine goes to the user log in screen. This has to happen cos 2 users can't log in to a windows machine at the same time. I don't mind this.
The problem arises when I am done previwing the remote machine's activity and I want to return control to it's default "User".
I have to log off here because I want to use my main machine to do other things. Staying logged into the remote machine would be ok if the remote was just processing data (which would also happen even if the login screen is showing)
My program is using screen scraping techniques that require the active window to be live and on screen.
Just had a thought though, If the user log in screen is a window and has a handle then I might be able to use Sendmessage()
PS: Remote assistance lets you have both machines showing the live window at the same time
but performance is degraded to a point that the remote can't handle the app.
-
March 10th, 2010, 08:15 PM
#6
Re: Controlling Windows Remote Desktop
Sounds like you need a server. Or maybe you could use Virtual PC?
-
March 11th, 2010, 05:06 AM
#7
Re: Controlling Windows Remote Desktop
We use UltraVnc for this. That way, you can log on to the system, and anyone can remote in using viewer. It will not log the current user off, so you can do all the task you need. Then when you are done, just disconnect.
-
March 11th, 2010, 08:45 PM
#8
Re: Controlling Windows Remote Desktop - RESOLVED
That does it Sotoasty Thanks for that.
You were on the right track dglenna thanks also.
BTW the 101 code articles are great.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|