Re: Launching RDP session from script



So you have saved your connection settings, including your username
and password, in an rdp file, correct?
Does it work when you double-click the rdp file manually?
If not, then you need to do what TP advised.

In your batchfile, you should use the command
"mstsc <my_settings.rdp>" (without the quotes).

Note that you can *not* save an rdpfile with username and password
and copy it to a different client. For security reasons, the
password is encrypted in such a way that only the same user, on the
same machine, can decrypt it.
And the client OS needs to be XP (or W2K?) for you to be able to
save the password at all.

If all users are using the same account and password (*not*
recommended!), you can set the username and password in Terminal
Services Configuration.
_________________________________________________________
Vera Noest
MCSE, CCEA, Microsoft MVP - Terminal Server
TS troubleshooting: http://ts.veranoest.net
___ please respond in newsgroup, NOT by private email ___

=?Utf-8?B?TWlrZSBL?= <MikeK@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote on 30
dec 2005 in microsoft.public.windows.terminal_services:

> Hi,
> All I want to do is launch a batch file as soon as the PC has
> booted. Is it possible to script this so that no one can break
> in to the batch file? Thanks,
> M
>
> "TP" wrote:
>
>> Exactly how are you attempting to do this? Please
>> post the code and/or steps.
>>
>> On the server, you need to set "use client provided
>> logon information" in the rdp-tcp properties and
>> clear the checkbox "always prompt for password".
>> This information is in TS configuration (tscc.msc).
>> The above setting can be set via Group Policy as
>> well.
>>
>> Thanks.
>>
>> -TP
>>
>> Mike K wrote:
>> > All,
>> > I'm trying to do what I'm sure is something pretty straight
>> > forward.
>> >
>> > That is, I wish to launch an RDP session from a batch file /
>> > script or GP. Everytime I attempt to do this it launches the
>> > RDP but doesn't take my hard coded username and password? It
>> > just sits on thew TS login screen?
>> >
>> > Any advice?
>> > Thanks,
.



Relevant Pages

  • Re: Terminal Services Client 6.0 Authentication
    ... The problem we are having is that the username that is being cached is ... Each one is a unique machine, and as such the client should ... allow you to save a set of credentials for each. ... Credentials are not stored in the rdp file any more. ...
    (microsoft.public.windowsxp.work_remotely)
  • Re: Remember user and password in Terminal services client
    ... Thats what I had heard I beleive you create the RDP file and save the password on an XP machine then export the reg settings and import into ... I think you can create a RDP file where you would be able to keep username/password/Domain information. ... access a program via terminal services client. ... funcion) I have heard that it is possible to set username and password ...
    (microsoft.public.pocketpc)
  • New RDP Client
    ... version that came with XP I could create 1 RDP file and save my Username, ... UserName - MySavedName ... Domain - MyDomain ...
    (microsoft.public.windows.terminal_services)
  • Re: remote desktop username and password
    ... recalls the username/password. ... It should remember the last username you used - but it shouldn't remember ... unless you saved out to an .rdp file. ... What RD client are you using? ...
    (microsoft.public.windows.server.sbs)
  • Re: how do I auto login from xp to terminal server
    ... the password saved in the RDP file is ... MCSE, CCEA, Microsoft MVP - Terminal Server ... so setting a static connect under RDC options will ... retype their username and password. ...
    (microsoft.public.windows.terminal_services)