djarnaldoo
Messages postés10Date d'inscriptionmardi 5 octobre 2004StatutMembreDernière intervention13 septembre 2006
-
7 août 2006 à 11:05
djarnaldoo
Messages postés10Date d'inscriptionmardi 5 octobre 2004StatutMembreDernière intervention13 septembre 2006
-
9 août 2006 à 16:08
Hello tlm :)
Qqun aurait il une idée, pour un script vbs pour compter le nombre d'adressage IP, par exemple si il y à en même temps une connex eth + wifi il y aura 2 adresse. ou permettre une seule à la fois.
Enfin voila si qqun à une petite idée je suis preneur.
djarnaldoo
Messages postés10Date d'inscriptionmardi 5 octobre 2004StatutMembreDernière intervention13 septembre 2006 9 août 2006 à 16:07
j'ai trouvé :) :)
on error resume next
strComputer = "."
Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\" & strComputer & "\root\cimv2")
Set IPConfigSet = objWMIService.ExecQuery ("Select * from Win32_NetworkAdapterConfiguration Where IPEnabled=TRUE")
a=1
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)
a = a+1
wscript.echo "Nombre d'IP" & a
Next
End If
Next