Jump to content

Search the Community

Showing results for tags 'active-directory runwait'.

  • 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, I am executing a small .VBS (setpassword.vbs), to set the user password of a user in AD: Set objUser = GetObject("LDAP://xx.xx.xx.xxx:389/cn=test,cn=users,dc=xxx,dc=com") objUser.SetPassword "xxxxxxx" Then in my .au3, I have: #RequireAdmin $return = RunWait('cscript.exe ".\setpassword.vbs"') ToolTip("Reset the user password!") Sleep(2000) That works, but now, I need to add some error handling. I am checking the @error and also the $return, after the RunWait(), but that seems to be 0, regardless of whether or not the .vbs ran with or without error! Is there a way to check whether or not the .VBS ran ok or not? Also, FYI, I am aware of the AD UDF, but up to now, I have tried this way because I wasn't really clear about how to do it using the AD UDF, so if someone could provide a small snippet for setting the AD user password using the AD UDF, I would actually prefer to do it that way and avoid the .vbs? Thanks, JIm
×
×
  • Create New...