?
Solved

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

Posted on 2011-02-15
5
Medium Priority
?
1,727 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

Question has a verified solution.

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

This article shows how to use a free utility called 'Parkdale' to easily test the performance and benchmark any Hard Drive(s) installed in your computer. We also look at RAM Disks and their speed comparisons.
Q&A with Course Creator, Mark Lassoff, on the importance of HTML5 in the career of a modern-day developer.
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…
Suggested Courses

777 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