Jump to content

Search the Community

Showing results for tags 'Query other domains'.

  • 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

Categories

  • Forum FAQ
  • AutoIt

Calendars

  • Community Calendar

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 - I use many of the AD.au3 functions regularly and usually have no issues however I am having difficulties with _AD_ListDomanControllers() if I compile the following and RunAs from a device on the domain I want to query, everything works OK _AD_Open() If @error Then MsgBox(16, "AD Error", "_AD_Open failed - Error = " & @error & ", @extended = " & @extended) Global $aDC = _AD_ListDomainControllers() If @error Then Exit MsgBox(16, "AD DC Error", "Error = " & @error) _ArrayDisplay($aDC, "Domain Controllers") _AD_Close() However if I try and use the code below from another domain, I get @error = 1 'No Domain Controllers Found'. The account & password are a DA account and work with other queries. _AD_Open("Domain\User", "password", "DC", "DC.FQDN", "CN=configuration") If @error Then MsgBox(16, "AD Error", "_AD_Open failed - Error = " & @error & ", @extended = " & @extended) Global $aDC = _AD_ListDomainControllers() If @error Then Exit MsgBox(16, "AD DC Error", "Error = " & @error) _ArrayDisplay($aDC, "Domain Controllers") _AD_Close() The point of this exercise is to increase the reliability of a script we use daily which queries four domains. At present if the specified DC were to fail, the script would fail. I know I can use netdom query to get the results I require but I would much rather keep this all within AutoIT. Any ideas greatly appreciated Thanks
×
×
  • Create New...