[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

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

Posted on 2011-02-15
5
Medium Priority
?
1,797 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
ID: 34903249
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
ID: 34906491
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 2000 total points
ID: 34907539
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
ID: 34907656
Yes, seems like there are a few options in there for picking the right adapter.  Thanks!
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 34907826
Let me know if you find something interesting...
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes clients can lose connectivity with the Lotus Notes Domino Server, but there's not always an obvious answer as to why it happens.   Read this article to follow one of the first experiences I had with Lotus Notes on a client's machine, my…
It is a real story and is one of my scariest tech experiences. Most users think that IT experts like us know how to fix all computer problems. However, if there is a time constraint and you MUST not fail the task or you will lose your job, a simple …
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses
Course of the Month17 days, 17 hours left to enroll

830 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