PDA

View Full Version : WMI ip address assignment (WXP-Pro)



jiminy
07-06-2006, 09:29 AM
Hi Everybody,

I'm slightly new to Windows scripting and currently learning (and teaching myself!) about WMI. Be gentle!!!

I have a machine with two network cards and would like to be able to assign a seperate static ip address to each card.

I have got as far as obtaining a collection of network devices and using the class NetworkAdapterConfiguration I can step through the collection and report out the settings (IPAddress, IPSubnet etc etc) and/or assign the SAME static IP address/subnet to all NIC's which are in the collection.

What I would like to know is...is it possible to assign a different IP address to different NIC's using the same vb script using WMI, and if so could someone point me in the right direction???

Cheers!!!

jiminy