Link to home
Start Free TrialLog in
Avatar of MickEv
MickEv

asked on

Any Registry Experts here?

Hi,

I am trying to script dial-up connections and I would like to know if there is a registry key that states whether a connection has been made successful or not. Example: When a connection is made a network connection icon appears in the task bar. Does anybody know the registry key for this? And or does anybody know how I can use a script to determine whether a connection has been successful or not.

I have tried using regmon to find the reg keys changed when a dial-up connection is made without any success.

The only other key that I have found which changes when dial-up connections are made is one for the modem status. When the modem is active ie dialling or connection made and in use the registry key changes from a 0 to a 1. I could use this key for scripting but it changes even when the modem is dialling so I am not sure exactly how I can sue this key to my advantage.

Any help would be much appreciated.

Mick
ASKER CERTIFIED SOLUTION
Avatar of Member_2_263671
Member_2_263671

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MickEv
MickEv

ASKER

Thanks for the info. I actually use rasdial but for some reason didn't think about trying to trap errorlevels returned - silly me.

Anyway I am now able to achieve what I was trying to do.

Thanks,

Mick
Avatar of MickEv

ASKER

Easy points for you! :)
Glad it works, thanks for the 'easy' points.