How to get the IP Address for your Local Area Connection on Windows Server?
- by Geo
I want to create a batch or vbs file that will put together a url and executed. Part of that url needs to be the actual ip address of the machine. How I am able to get that IP address in a variable to include it on the script?
EDIT 1:
I found out that the command below will give me the IP Address, but still don't know how to get that value into a variable to use it in a script.
c:\> wmic NICCONFIG WHERE IPEnabled=true GET IPAddress /format:csv
Node,IPAddress
IP-0AFB,{10.25.5.2}