Simple way To get all ip directions of one pc,

 On Error Resume Next
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\cimv2")
 Set colItems = objWMIService.ExecQuery 	("Select * from Win32_NetworkAdapterConfiguration")
cadena=""
For Each objItem in colItems
	For Each strIPAddress in objItem.IPAddress
		cadena=cadena & " " & strIPAddress
	Next
Next
Wscript.Echo cadena
Facebooktwitterredditpinterestlinkedinmail