modem connection with wmi using default psw

M

Michel Reynard

Hi,
I'd like to open a modem dial-up connection using de default stored
password.
I tried to call rasdial.exe but it doesn't use the stored password
Is there a way of doing it with wmi?

Michel
 
M

Marty List

Hi Michel,

- Are you trying to open this on the local machine or a remote machine?


- Which scripting language are you using?


- How is your script being launched (logon script, GPO, clicking shortcuts,
etc.)? More specifically, does the script run in the user's security context,
the local system, or ???


- Is there a specific reason you want to do this through WMI?
 
M

Michel Reynard

Hy Marty,

Thanks for your help.
The program will be launched on the local machine. It's a VB Script but it
could be a batch too. The script will be lauched from a shortcut. It has to
open the dia-up connection, start the firewall and do a few other things.
I prefer do it as a batch or vb scritp than an exe. It has to be easy to
modify and shoulb have only one file.
Since I had trouble with rasdial.exe (couldn't use the stored password) i
thought using WMI.

Michel
 
M

Marty List

I think I've been able to do this in the past but I can't remember the
details. Try RASPHONE.EXE /?
 
M

Michel Reynard

Thanks Marty

I set the properties of the connections to no prompt and then call it

raphone.exe -d myDialUpConnectionName

works great

Michel
 

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