rasdial password error with dial-up connection

R

Ron

Wish to use vb script on WinXP machine to connect to
internet by existing dial-up connection, then start
firewall. Password already saved for DUN by WinXP, so
double click dial-up connection name connects without
user intervention.

But rasdial in script or command prompt window only
dials, then fails user & password verification [error
691]. The code is:
Dim variables below
sDialUpName = "my ISP"
sDialUpCmd = "rasdial " & Chr(34) & sDialUpName & Chr(34)
& " " & "myUsername" & " " & "myPassword"
iRC = oShell.Run(sDialUpCmd,1,True)

I'd much prefer to omit username & password for security,
but same error 691 occurs.

Help please!
 
S

Stephen Johnson

Have you tried running the command from a prompt to make sure it works outside your script? Also,
sometimes the usernames are more like email addresses, meaning they have an "at" symbol and then the
server name. But some don't. That might be a reason why it can't connect.

Stephen.
 
R

Ron

Stephen,
1) Yes, that's what I meant by "rasdial or command prompt"
2) Yes tried both ways.

Any other suggestions 4e1 plz?
-----Original Message-----
Have you tried running the command from a prompt to make
sure it works outside your script? Also,
sometimes the usernames are more like email addresses,
meaning they have an "at" symbol and then the
server name. But some don't. That might be a reason why it can't connect.

Stephen.

Wish to use vb script on WinXP machine to connect to
internet by existing dial-up connection, then start
firewall. Password already saved for DUN by WinXP, so
double click dial-up connection name connects without
user intervention.

But rasdial in script or command prompt window only
dials, then fails user & password verification [error
691]. The code is:
Dim variables below
sDialUpName = "my ISP"
sDialUpCmd = "rasdial " & Chr(34) & sDialUpName & Chr (34)
& " " & "myUsername" & " " & "myPassword"
iRC = oShell.Run(sDialUpCmd,1,True)

I'd much prefer to omit username & password for security,
but same error 691 occurs.

Help please!


.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top