Re: Launching RDP session from script
- From: "Vera Noest [MVP]" <vera.noest@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 30 Dec 2005 12:16:29 -0800
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,
.
- Follow-Ups:
- Re: Launching RDP session from script
- From: Mike K
- Re: Launching RDP session from script
- References:
- Prev by Date: Re: User cannot RDP to 2k3 server
- Next by Date: Re: client printers show up but don't print
- Previous by thread: Re: Launching RDP session from script
- Next by thread: Re: Launching RDP session from script
- Index(es):
Relevant Pages
|