Werbung: SecurityConsole.de verwaltet Ihre Computer mit Security Essentails aus der Cloud!
30 Tage kostenfrei testen und 20% Rabatt für Ihre Bestellung mit Promocode: WBF2685582
(Promocode gültig bis 31.12.2011)

Group:  English: Windows Server » microsoft.public.windows.server.scripting
Thread: how to remote login

HTVi
TV Discussion Newsgroups

how to remote login
Miztiik 5/16/2007 11:32:00 AM
how to use rdp to connect to remote computer in vbs script.

as of now the setup is like that
STEP 1 :: from my computer run "mstsc" to other computer
STEP 2 :: The remote computer, throws a security notice, i click "OK" to get
thru
STEP 3 :: I type the UID and PWD and click connect
i am logged into the server.

now i want to do this in a vbs
Re: how to remote login
"Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> 5/16/2007 5:56:27 PM

"Miztiik" <Miztiik[ at ]discussions.microsoft.com> wrote in message
news:E8B9D1F9-113F-45E8-8C0B-CCB83B9845D0[ at ]microsoft.com...
[Quoted Text]
> how to use rdp to connect to remote computer in vbs script.
>
> as of now the setup is like that
> STEP 1 :: from my computer run "mstsc" to other computer
> STEP 2 :: The remote computer, throws a security notice, i click "OK" to
> get
> thru
> STEP 3 :: I type the UID and PWD and click connect
> i am logged into the server.
>
> now i want to do this in a vbs

I doubt that mstsc will expose its methods in a COM object, so it might be
that the only way to do this would involve sendkeys. That said, I am not too
sure that this will work well.

You should keep in mind that those nuisance keystrokes you want to automate
are there for security purposes. Beware of embedding a password in any
script, and beware of sendkey'ing a password, as the window with the focus
can change.

/Al


Re: how to remote login
Miztiik 5/19/2007 1:23:01 AM
yes i understand the problems in storing a password in a script and sending
them thru send keys..both of which i am not doing

mstsc in itself encrypts the password and stores it i a rdp file. given that
all i need is to get thru the security notice from my script.

any suggestions on that?
Re: how to remote login
"Al Dunbar" <AlanDrub[ at ]hotmail.com.nospaam> 5/19/2007 3:41:17 AM

"Miztiik" <Miztiik[ at ]discussions.microsoft.com> wrote in message
news:10DA0994-18C7-4596-8237-8C0B796184CE[ at ]microsoft.com...
[Quoted Text]
> yes i understand the problems in storing a password in a script and
> sending
> them thru send keys..both of which i am not doing
>
> mstsc in itself encrypts the password and stores it i a rdp file. given
> that
> all i need is to get thru the security notice from my script.
>
> any suggestions on that?

Not really. Unless mstsc provides a COM interface for scripts to manipulate
individual elements (hey, I'd like to see the DOM for an RDP session), then
I think you will need to use sendkeys or perhaps AutoIT or a similar
utility.

You say mstsc encrypts the password and stores it in a .rdp file local to
the client. But just because it is not recognizable, does not imply strong
encryption. And, even if it cannot be reversed, it (the .rdp file) could
perhaps be stolen and used to logon remotely for some purpose other than
what you have in mind.


/Al


Re: how to remote login
"Nut Cracker" <nutcracker[ at ]internationalhacker.org> 5/29/2007 11:02:46 PM

"Miztiik" <Miztiik[ at ]discussions.microsoft.com> wrote in message
news:E8B9D1F9-113F-45E8-8C0B-CCB83B9845D0[ at ]microsoft.com...
[Quoted Text]
> how to use rdp to connect to remote computer in vbs script.
>
> as of now the setup is like that
> STEP 1 :: from my computer run "mstsc" to other computer
> STEP 2 :: The remote computer, throws a security notice, i click "OK" to
> get
> thru
> STEP 3 :: I type the UID and PWD and click connect
> i am logged into the server.
>
> now i want to do this in a vbs

use the new RDP client, v.6 (i think)

give it the credentials once, and when you get a successful connection, it
stores the credentials for later use. Then all you have to do is run mstsc
/v:<hostname> , or whatever, and it will automatically open for you.

But then again ... you havent said what you are really trying to accomplish
here. Could you give more detail?


Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net
Suche nach Orten, Städten, Postleitzahlen, Vorwahlen, Kfz-Kennzeichen