Ipconfig Description
Posted: 25 Oct 2010 07:02
Hello,
I'm writing a script to check what ip number a computer has. This is what i have.
@echo off
ipconfig | find /i "10.160" | find /i "ip" >nul
if %errorlevel%==0 goto install
This script is working, the only thing is i want to check if the ip numer is from a vpn connection. Now i know that ipconfig /all shows also the discription.
But how can i show the ip-number of a network adaptor with the discription "Cisco VPN adaptor"?
so what i want is If a network adaptor has the discription "Cisco VPN" show the IP-adres.
I hope you understand what i want:)
Thanks in advance
I'm writing a script to check what ip number a computer has. This is what i have.
@echo off
ipconfig | find /i "10.160" | find /i "ip" >nul
if %errorlevel%==0 goto install
This script is working, the only thing is i want to check if the ip numer is from a vpn connection. Now i know that ipconfig /all shows also the discription.
But how can i show the ip-number of a network adaptor with the discription "Cisco VPN adaptor"?
so what i want is If a network adaptor has the discription "Cisco VPN" show the IP-adres.
I hope you understand what i want:)
Thanks in advance