Permalink
Browse files

No commit message

  • Loading branch information...
1 parent 14f861d commit daec90079d8fc90da9af75e2167ff690d46cd9f4 thegfw committed Sep 9, 2013
Showing with 13 additions and 3 deletions.
  1. +13 −3 UserInclude/ACN_NET.au3
@@ -238,11 +238,21 @@ Func _NetworkAdapterInfo()
If IsObj($colItems) Then
For $objItem In $colItems
$NetworkAdapterName = $objItem.Description
- $NetworkAdapterGateway = $objItem.DefaultIPGateway(0)
+ FOR $Element IN $objItem.DefaultIPGateway
+ $NetworkAdapterGateway= $Element
+ ExitLoop
+ NEXT
$NetworkAdapterHostName = $objItem.DNSHostName
$NetworkAdapterIPaddress = $objItem.IPAddress(0)
- $NetworkAdapterDNS1 = $objItem.DNSServerSearchOrder(0)
- $NetworkAdapterDNS2 = $objItem.DNSServerSearchOrder(1)
+ $NetworkAdapterDNS1=''
+ FOR $Element IN $objItem.DNSServerSearchOrder
+ If $NetworkAdapterDNS1='' Then
+ $NetworkAdapterDNS1= $Element
+ Else
+ $NetworkAdapterDNS2= $Element
+ ExitLoop
+ EndIf
+ NEXT
$NetworkAdapterSubnet = $objItem.IPSubnet(0)
$NetworkAdapterMAC = $objItem.MACAddress
$NetworkAdapterID += 1

0 comments on commit daec900

Please sign in to comment.