Solved

WMI query returning IP address of VPN adapter, not physical NIC

Posted on 2011-02-15
5
1,624 Views
Last Modified: 2012-05-11
Hi all,

I'm posting here in hopes that someone can make a suggestion that I can pass along to one of our application vendors.  The vendor's application is using WMI to query the IP address of the PCs it manages.  Some of the PCs in question have a Juniper SSL VPN client on them that is used to connect with a customer site.  When the users of these PCs establish the VPN session, WMI starts reporting that the IP address is the one used by the VPN adapter, and not the physical LAN connection.

Clients being queried are all Windows 7 Enterprise.

The vendor is not making any progress on this.  Does anyone know of a way to prevent the IP address of the VPN adapter from becoming the one reported by WMI?  Attacking from a different angle, is there a more specific WMI query they could be making to get the right info, recognizing that this revised query would need to work in many differing environments?

Thanks,

Steve
0
Comment
Question by:grv
  • 3
  • 2
5 Comments
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
I don't think that there is any way to prevent the VPN adapter from being seen in the WMI query.  It would probably be easier to figure out how they are doing the WMI query for adapters.
0
 
LVL 3

Author Comment

by:grv
Comment Utility
Assuming there is one query one might do to get this information, can you confirm that it returns a list of all IP addresses?  Are there multiple queries one could pose to return IP address information, and how are they different?

We are talking to the vendor about how they handle the output of the query - as you said, that may be our best option.

Thanks
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
Comment Utility
I would think that they are using Win32_NetworkAdapterConfiguration class...

Win32_NetworkAdapterConfiguration Class
http://msdn.microsoft.com/en-us/library/aa394217(v=vs.85).aspx

There are a few properties for each adapter, that might give them a clue as to what type of network adapter, and avoid any VPN adapters...
0
 
LVL 3

Author Closing Comment

by:grv
Comment Utility
Yes, seems like there are a few options in there for picking the right adapter.  Thanks!
0
 
LVL 96

Expert Comment

by:Bob Learned
Comment Utility
Let me know if you find something interesting...
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Sometimes drives fill up and we don't know why.  If you don't understand the best way to use the tools available, you may end up being stumped as to why your drive says it's not full when you have no space left!  Here's how you can find out...
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
The goal of the tutorial is to teach the user how to use functions in C++. The video will cover how to define functions, how to call functions and how to create functions prototypes. Microsoft Visual C++ 2010 Express will be used as a text editor an…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial s…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now