Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2011-02-15
5
Medium Priority
?
1,761 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Compliance and data security require steps be taken to prevent unauthorized users from copying data.  Here's one method to prevent data theft via USB drives (and writable optical media).
Windows Server 2003 introduced persistent Volume Shadow Copies and made 2003 a must-do upgrade.  Since then, it's been a must-implement feature for all servers doing any kind of file sharing.
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…
Finding and deleting duplicate (picture) files can be a time consuming task. My wife and I, our three kids and their families all share one dilemma: Managing our pictures. Between desktops, laptops, phones, tablets, and cameras; over the last decade…
Suggested Courses

636 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