Solved

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

Posted on 2011-02-15
5
1,648 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
In this article, I will show you HOW TO: Perform a Physical to Virtual (P2V) Conversion the easy way from a computer backup (image).
The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

910 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