tools



If I take the following script.

strComputer = "."
Set objWMIService = GetObject("winmgmts:" _
& "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")

Set IPConfigSet = objWMIService.ExecQuery _
("Select * from Win32_NetworkAdapterConfiguration Where IPEnabled=TRUE")

For Each IPConfig in IPConfigSet
If Not IsNull(IPConfig.IPAddress) Then
For i=LBound(IPConfig.IPAddress) to UBound(IPConfig.IPAddress)
WScript.Echo IPConfig.IPAddress(i)
Next
End If
Next



I am using Windows Management Instrument, how can I trace where this is and what all the available other options are.

Are there any better tools ?
.



Relevant Pages

  • writing to a log-file with multiple users at the same time
    ... I'm really new to scripting and i'm stuck with this script i have written. ... would like to use this as a logon script but the problem is that when 2 users ... For Each IPConfig in IPConfigSet ...
    (microsoft.public.windows.server.scripting)
  • Re: Scripting with Arrays
    ... Snipping the script since wrapping makes it so hard to read (obviously, ... Inside the loop you get your IP addresses - and still inside the loop, ... Set IPConfigSet = objWMIService.ExecQuery _ ... For Each IPConfig in IPConfigSet ...
    (microsoft.public.scripting.wsh)
  • Re: The system cannot find the file specified - Win32_NetworkAdapt
    ... I'm pretty sure I've confirmed it was a 'fasle positive' by Kaspersky. ... The script is running stand-alone - although you are correct that it ... For Each IPConfig in IPConfigSet ... Dim m_WshNetwork ...
    (microsoft.public.scripting.vbscript)
  • Re: writing to a log-file with multiple users at the same time
    ... I'm really new to scripting and i'm stuck with this script i have written. ... would like to use this as a logon script but the problem is that when 2 ... For Each IPConfig in IPConfigSet ...
    (microsoft.public.windows.server.scripting)
  • Re: The system cannot find the file specified - Win32_NetworkAdapt
    ... The script is running stand-alone - although you are correct that it was ... I've confirmed this error is generated the moment variable IPConfigSet is ... because the code you pasted doesn't dim intCtr, ... Dim m_WshNetwork ...
    (microsoft.public.scripting.vbscript)