sandyd Posted June 14, 2006 Share Posted June 14, 2006 Hi Everyone, We have multiple domain controllers i n multiple sites around the country. When an account is locked out, it doesn't always show as locked on all of the domain controllers and I have to manually use AD Users and Computers to connect to each and unlock, reset accounts. Does anyone know of some code to connect to each domain controller, find the required user and unlock their account / reset their password. Any bits of code, ideas etc are welcome. I believe that this may be a useful tool, and once the basics are done, any extra functions can be added. Possible start a new Autoit project? If not, just a bit help for me would be nice. ----[ SandyD ]--- Link to comment Share on other sites More sharing options...
nfwu Posted June 14, 2006 Share Posted June 14, 2006 You can have a client/server type of architechure.Every single domain controller has a server that you write. This program stays on all the time. (Usually as a service)You carry around a client application that you can use to connect to anyone of the servers and send commands to one or more servers at a time.The client will respond to the commands and do the required automation on the targeted domain controller(s).Hope this makes sense.For the networking part, you can use AutoIt's TCP functions.Starting point for some TCP references:http://www.autoitscript.com/forum/index.php?showtopic=20589#) TwitterOut of date stuff:Scripts: Sudoku Solver | Webserver | 3D library (Pure AutoIt) | Wood's GadgetsUDFs: _WoodUniqueID() | _DialogEditIni() | _Console*() | _GetIPConfigData() | _URLEncode/Decode() Link to comment Share on other sites More sharing options...
arcker Posted June 14, 2006 Share Posted June 14, 2006 this bug is a well known bug of AD the lockedout part is really bugged in windows 2000 server, but not in 2003 anyway, there is on msdn a script that permit to show all user locked on the domain, (you have to paste this code to create a new rule) c u -- Arck System _ Soon -- Ideas make everything "La critique est facile, l'art est difficile" Projects :[list] [*]Au3Service : Run your exe as service V3 / Updated 29/07/2013 Get it Here [/list] Link to comment Share on other sites More sharing options...
Developers Jos Posted June 14, 2006 Developers Share Posted June 14, 2006 MS has a utility called LockoutStatus.exe which can show the status of a user in all DC's ..... SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. 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