Re: initiating a remote desktop session from a service

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



Thanks Guy,

But my problem is really very simple.

A service "MyLauncher Service" executes a command "C:\WINDOWS\system32\mstsc
/edit c:\MyRdp.rdp", And in the previous version, the dialog appeared and
one could enter domain, user and password, and then save this information in
the rdp file.
And when the rdp file is configured the /edit is replaced by /console.
Bingo, then a desktop is available even after the machine is restarted and
no-one is logged on the machine.

This is no longer possible in version 6.0.

As far as i can tell, the RDP v 6 must have access to some network for
validation, and if mstsc is launched from a "Service" then the credentials
cannot be saved/edited. But i may be wrong.

It would perhaps be wishful thinking to hope for this option in the next
version of remote desktop. It could perhaps be a local machine only option.

/Allan

"guyyardeni" <guyyardeni@xxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:u9Q2LoCQHHA.4372@xxxxxxxxxxxxxxxxxxxxxxx
Allan,
Take a look at the last answer in this FAQ:
http://blogs.msdn.com/ts/archive/2007/01/22/vista-remote-desktop-connection-authentication-faq.aspx#_Prompted_for_Authentication.
It allows you to disable network level authentication which change the
authentication behavior of the new RDP client (make sure to read the
caveats).
Also, I haven't had a chance to test this thoroughly yet, so if you get a
chance to post your results that would be great.


--
Guy Yardeni



"Allan Bentsen" <allanbentsen@xxxxxxxxxxxxxxxxx> wrote in message
news:OUlQSEBQHHA.404@xxxxxxxxxxxxxxxxxxxxxxx
Hi

Just finished some testing.

Unfortunately i found no solution for my problem.

The option "%windir%\system32\mstsc.exe /edit c:\myrdp.rdp"


I still do not get the possibility to save the domainname, username and
password in the rdp file.

This means that the "credentials" are invalid.

I use the remote desktop to connect to the same machine that executes the
cmd. kind of remoting to "127.0.0.1"


Since I need an active desktop in order to handle ms word documents a.o.
I cant see any other way than removing the update for the remote desktop
version 6.0.



"Allan Bentsen" <allanbentsen@xxxxxxxxxxxxxxxxx> wrote in message
news:O5lqOpAQHHA.3668@xxxxxxxxxxxxxxxxxxxxxxx
Hi Vera

Thank you,

I'll have a look at it.

Thanx
Allan

"Vera Noest [MVP]" <vera.noest@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in
message news:Xns98C2ED9C9C10Everanoesthemutforsse@xxxxxxxxxxxxxxxx
Have a look here:

Vista Remote Desktop Connection Authentication FAQ
http://blogs.msdn.com/ts/archive/2007/01/22/vista-remote-desktop-
connection-authentication-faq.aspx
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

"Allan Bentsen" <allanbentsen@xxxxxxxxxxxxxxxxx> wrote on 24 jan
2007 in microsoft.public.windows.terminal_services:

Hi there

From a service a cmd file was called containing these three
lines "..\mstsc.exe /edit c:\myrdp.rdp"
timeout 60
"..\mstsc.exe c:\myrdp.rdp /console"

Before installing version 6.0 it was possible to save
credentials, with password, to c:\myrdp.rdp file even though the
session was started from a service.

After upgrading, it is no longer possible to do this.

Any ideas of how to do this with the new version of remote
desktop ?







.



Relevant Pages

  • Re: RDP challenge after changing "main" profiles password, cant access any longer with RDP in XP SP2
    ... My issue is not with the Remote Desktop program.... ... I am asking about the Windows XP Pro on the computers I am trying to ... VPN connection and I couldn't sign onto the "main" profile ... Perhaps the saved settings in the .rdp file is what you meant by "profile"; ...
    (microsoft.public.windowsxp.general)
  • Saving remote desktop connections
    ... Is it possible to save remote desktop connections to the same computer ... So I enter the credentials for user1 and "save as" the RDP file as ... Clicking on this RDP logs me in to user1's account. ...
    (microsoft.public.windows.vista.networking_sharing)
  • Re: initiating a remote desktop session from a service
    ... And when the rdp file is configured the /edit is replaced by /console. ... It allows you to disable network level authentication which change the ... This means that the "credentials" are invalid. ... I use the remote desktop to connect to the same machine that executes ...
    (microsoft.public.windows.terminal_services)
  • RE: save password in .rdp file
    ... To enable Autologon on a device, you must use the PB development environment ... to reinstall windows CE on my machine? ... the Remote Desktop client dialog box is located. ... as, Remote desktop saves the information in an .rdp file, all the information ...
    (microsoft.public.windowsce.embedded)
  • RE: save password in .rdp file
    ... To enable Autologon on a device, you must use the PB development environment ... to reinstall windows CE on my machine? ... the Remote Desktop client dialog box is located. ... as, Remote desktop saves the information in an .rdp file, all the information ...
    (microsoft.public.windowsce.embedded)