I know of whoami.exe. Is there a version called whereami.exe
The output should be able to tell me if I am on a LAN, wireless or VPN.
the machines would be running Windows Xp or better.
I know of whoami.exe. Is there a version called whereami.exe
The output should be able to tell me if I am on a LAN, wireless or VPN.
the machines would be running Windows Xp or better.
What about
ipconfig /all
?Seriously, there is no way to know what kind of network you're connected to, other than looking at the network device's name and guessing. There are proprietary tools made by some system vendors (mainly laptops) which can switch between LAN and wireless, but there's nothing "universal" you can just run on any computer and which can tell you "this is a wireless network".
LAN, wireless, VPN. Those three are not mutually exclusive. You could be on Wireless & VPN, LAN & VPN, LAN and wireless, etc.
Some of the info you're looking for is probably available through the Windows Network Location Awareness service. I have no idea how you'd go about getting at this information programmatically, though.