Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.
Keywords: WMI and Get IPAddress Property
But how can I read the IPaddress propertie. This is an array of strings, and can't retrieve the address
Locator = ObjectOpen("WbemScripting.SWbemLocator") Service = Locator.ConnectServer() Security = Service.Security_ Security.ImpersonationLevel = 3 Class = "Win32_NetworkAdapterConfiguration" Instance = Service.InstancesOf(Class) hEnum = ObjectCollectionOpen(Instance) Obj = ObjectCollectionNext(hEnum) If Obj != 0 Message(Class, StrCat("Description"," = ",Obj.Description,@CRLF,"Ip Address = ",Obj.ipaddress(0))) Endif ObjectCollectionClose(hEnum) ObjectClose(Instance) ObjectClose(Security) ObjectClose(Service) ObjectClose(Locator)
Article ID: W15792
File Created: 2003:05:13:11:30:06
Last Updated: 2003:05:13:11:30:06