Home All Groups Group Topic Archive Search About


Author
2 May 2007 11:28 AM
Miztiik
is it possible to use the windows remote desktop connection in a vb script?

if so can anyone help me with that..

i found that i can be embeded in awebpage
http://msdn2.microsoft.com/en-us/library/aa380809.aspx


likewise in a vbscript?

Author
2 May 2007 12:32 PM
CreateWindow
Hi,

I run my rdp's from a script to force a console session. Very simple though.
I think you want something more exciting?

Option Explicit
Dim Res, WshShell, ExitCode, Cmd
Cmd = "mstsc ""C:\Util\server45dc.rdp"" /console"
Set WshShell = WScript.CreateObject("WScript.Shell")
  ExitCode = WshShell.Run(cmd, 10, FALSE )
Set WshShell = Nothing

CreateWindow
http://justpageprobe.com
The FREE Web page utility you always wanted.
Keep your router connected.
Email your IP to where you need it.
Monitor your enterprise Web Servers.





Show quote
"Miztiik" <Mizt***@discussions.microsoft.com> wrote in message
news:30E89B49-7C4C-4D9E-A205-8506F4259667@microsoft.com...
> is it possible to use the windows remote desktop connection in a vb
> script?
>
> if so can anyone help me with that..
>
> i found that i can be embeded in awebpage
> http://msdn2.microsoft.com/en-us/library/aa380809.aspx
>
>
> likewise in a vbscript?
Author
2 May 2007 2:00 PM
h3ll b0I
your script kinda creates console session [and needs a human to enter
the UID and pass]

i want it to be done automatically?

any suggstions on that?
Author
2 May 2007 11:22 PM
CreateWindow
Hi,

It goes straight in and connects 'cos the credentials are remembered. Do you
have the latest RDP client?

CreateWindow

Show quote
"h3ll b0I" <mizt***@gmail.com> wrote in message
news:1178114401.889374.278230@n76g2000hsh.googlegroups.com...
> your script kinda creates console session [and needs a human to enter
> the UID and pass]
>
> i want it to be done automatically?
>
> any suggstions on that?
>
Author
3 May 2007 10:36 AM
h3ll b0I
yes it has the credentials remembered in the file, but sometimes
before the login uid and pass is prompted, there is a pop up box
prompting up to click on OK...after that only the authentication box
opens
Author
3 May 2007 12:28 PM
CreateWindow
Dear h3ll b0I,

Yes sometimes it does in certain situations. I just d'click my VBS shortcut
and up comes the remote desktop. Depends on your security settings for the
latest mstsc.

Have a great day HB
CreateWindow

Show quote
"h3ll b0I" <mizt***@gmail.com> wrote in message
news:1178188602.573836.147640@p77g2000hsh.googlegroups.com...
> yes it has the credentials remembered in the file, but sometimes
> before the login uid and pass is prompted, there is a pop up box
> prompting up to click on OK...after that only the authentication box
> opens
>
Author
3 May 2007 3:33 PM
h3ll b0I
is it possible to trigger a click event thru a script?so i can get
thru it

AddThis Social Bookmark Button