Sign in to follow this  
Followers 0
stev379

Checking which "Local Area Connection" is connected.

1 post in this topic

I'm moving a floor from static to DCHP. Script to do this and clear DNS and WINS addresses and report is all set. The problem is that it points to the "Local Area Connection" using netsh. Even though all of the machines are using the proprietary network connection on these Dell GX270 and 280's, some of them are connected with the "Local Area Connection 2" or "Local Area Connection 3", etc. displayed in the network properties window.

If I know which connection is currently connected, I can pass that into a variable of course.

How can I have a script check to see which "Local Area Connection x" is currently connected?

Thanks for any help or suggestions.

Share this post


Link to post
Share on other sites



Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0