I need a little help with some scripting so i can out put the default
network card being used on any given computer.
I know i can use something like:
strComputer = "."
Set objWMIService = GetObject("winmgmts:\\" & strComputer)
Set colItems =
objWMIService.InstancesOf("Win32_NetworkAdapterConfiguration")
For Each objItem in colItems
Wscript.Echo objItem.Description
Next
However this lists all the NIC's and all i want is the default (main)
NIC.
Re: Find Default Network Card NIC ... I need a little help with some scripting so i can out put the default ...network card being used on any given computer. ...Set colItems = ... However this lists all the NIC's and all i want is the default ... (microsoft.public.scripting.vbscript)
Re: Count of items in a collection (array)? ...Set colItems = objWMI.ExecQuery("SELECT HotFixID,InstalledBy FROM " _ ... On Error Goto 0 ... -- torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: ... (microsoft.public.scripting.wsh)
batch update the ip address of all webs in IIS 5 ... we are moving an existing and configured webserver IIS5 to our ... so we have to change the ip address of the network card.... Is it possible to change this with scripting?... (microsoft.public.inetserver.iis)
Re: Win32_NetworkAdapterConfiguration ... It's supposed to be a string value. ...Set colItems = objWMIService.ExecQuery _ ... For Each objItem in colItems ... torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway Administration scripting examples and an ONLINE version of the 1328 page Scripting Guide: http://www.microsoft.com/technet/scriptcenter/default.mspx. ... (microsoft.public.win32.programmer.wmi)
Win32_PnPSignedDriverCIMDataFile Class ...Sample code is from Scripting Guy: ...Set colItems = objWMIService.ExecQuery("Select * from ... (microsoft.public.win32.programmer.wmi)