Jump to content

Search the Community

Showing results for tags '$objWMIService.ExecQuery'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hi, Im trying to pull out some network adapter settings, this is my script: $colAdapters = $objWMIService.ExecQuery ("SELECT * FROM Win32_NetworkAdapterConfiguration WHERE IPEnabled = True") For $objAdapter in $colAdapters If Not ($objAdapter.IPAddress) = " " Then ConsoleWrite (" ID: " & $objAdapter.NetConnectionid& @CR) ConsoleWrite (" Physical (MAC) address: " & $objAdapter.MACAddress& @CR) ConsoleWrite (" IP Address : " & $objAdapter.IPAddress(0)& @CR) ConsoleWrite (" IP Subnet : " & $objAdapter.IPSubnet(0)& @CR) ConsoleWrite (" IP Default Gateway : " & $objAdapter.DefaultIPGateway(0)& @CR) ConsoleWrite (" IP DNS1 : " & $objAdapter.DNSServerSearchOrder(0)& @CR) ConsoleWrite (" IP DNS2 : " & $objAdapter.DNSServerSearchOrder(1)& @CR) EndIf Next EndFunc The only one not working is 'NetConnectionid' which should bring back the name of the adapter is it appears in network and sharing centre, in my case this is 'Local Area Connect' but it is not returning anything. Anyone got any ideas?
×
×
  • Create New...