abhayc Posted November 13, 2012 Share Posted November 13, 2012 Hi I want to start writing a script to automate some tasks in Microsoft Active directory. Basically, I want to be able to connect to an already open AD window, get the user list, double click on each user name, click on reset password and set new password. Can some one help me with a basic script that could become a starting point for the same ? I tried using AutoInfo on AD window, but not able to get class names etc. for the list, buttons etc. Link to comment Share on other sites More sharing options...
Chimaera Posted November 13, 2012 Share Posted November 13, 2012 try here and examples here If Ive just helped you ... miracles do happen. Chimaera CopyRobo() * Hidden Admin Account Enabler * Software Location From Registry * Find Display Resolution * _ChangeServices() Link to comment Share on other sites More sharing options...
water Posted November 13, 2012 Share Posted November 13, 2012 Chimaera already pointed you into the right direction. The AD UDF doesn't automate the admin console but uses COM to directly interact with AD. Use functions _AD_GetObjectsInOU to get a list of users and function _AD_ModifyAttribute to set a property of the user. The examples cripts for each funtion tell you how to do. If you have any questions or problems please post in the Help & Support thread (links can be found in my signature below). My UDFs and Tutorials: Spoiler UDFs: Active Directory (NEW 2024-07-28 - Version 1.6.3.0) - Download - General Help & Support - Example Scripts - Wiki ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts OutlookEX (2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki PowerPoint (2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki Task Scheduler (2022-07-28 - Version 1.6.0.1) - Download - General Help & Support - Wiki Standard UDFs: Excel - Example Scripts - Wiki Word - Wiki Tutorials: ADO - Wiki WebDriver - Wiki Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now