rasdial password error with dial-up connection

  • Thread starter Thread starter Ron
  • Start date Start date
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!
 
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.
 
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!


.
 
Back
Top