ryan_powell Posted August 9, 2006 Posted August 9, 2006 Hi guys and gals. I'm sure that somewhere on this site is the solution i'm looking for but i've looked and can't find anything. Anyway... As part of an updated Intranet system i am designing and administrative portal for carrying out simple domain user tasks without the need for the AD console. The two things i wan't to do is: >reset a single user's password - providing the script with the OU, username and new password. >Enable or disable a users account (if required) - once again providing the script with the user's OU and username if required our entire domain name is: bramcote.http://www.bramcotepark.notts.sch.uk Many Thanks - any questions ask away.
MkII Posted August 9, 2006 Posted August 9, 2006 What about this: http://www.edugeek.net/index.php?name=Forums&file=viewtopic&p=26384#26384 Irazmus/Plexar: - self service password reset
Ric_ Posted August 10, 2006 Posted August 10, 2006 @mark: I must have searched for 20mins trying to find that link!!!
MkII Posted August 10, 2006 Posted August 10, 2006 Yes - needs to go on ChrisH's home grown tools sticky
ryan_powell Posted August 31, 2006 Author Posted August 31, 2006 Thanks for the responses. Just got back from a lovely time in Florida, but now back into the slog of web programming ready for when the little darlings start back on tuesday. I've had a look at the files and scripts suggested, boy they're very complex but im reading through and picking bits up. Hopefully will have a working example ready one day if i ever get over the fear of accidentally resetting every password in the Domain / OU :silent: Thanks
plexer Posted August 31, 2006 Posted August 31, 2006 There's a configuration file with all the bits you need to alter to get self service password reset to work and that's about all you have to do apart from setting it up as a website. If you have any specific issues let us know. Ben
webman Posted August 31, 2006 Posted August 31, 2006 Hi Ryan, I've got a similar thing on our Intranet. You also have a PM
brightjdb Posted June 4, 2009 Posted June 4, 2009 This script is a great script for Public access computer that need to abide by CALEA laws. Basicly it is a Password of the day script. It will generate a password reset a specified user to that password and email a group or individual "The password of the Day" You either must run this on a system that has rights to change passwords or run with an account that does. Use task scheduler to run this at whatever time you would like. ================================================ ================================================ Option Explicit Dim objUser, objEmail Dim strPassword Dim intAccValue, strPwd1, strPwd2, strPwd3, StrPW 'Generate Password strPwd1 = GeneratePassword("ABCDEFGHJKLMNPQRSTUVWXYZ", 3) strPwd2 = GeneratePassword("abcdefghijkmnpqrstuvwxyz", 4) strPwd3 = GeneratePassword("123456789", 1) Function GeneratePassword(strCharacters, intLength) Randomize Dim strS, intI For intI = 1 To intLength strS = strS + Mid(strCharacters, Int(Rnd() * Len(strCharacters))+1, 1) Next GeneratePassword=strS End Function StrPW = strPwd1 & strPwd2 & strPwd3 'Set account to Reset Set objUser = GetObject("LDAP://CN=USER,OU=USERS,DC=YOUR,DC=Domain") 'Set Account Attributes intAccValue = 544 objUser.SetPassword(StrPW) objUser.SetInfo objUser.Put "userAccountControl", intAccValue objUser.SetInfo 'Send email Settings are configured for NON-SMTP service computer Set objEmail = CreateObject("CDO.Message") objEmail.From = "[email protected]" objEmail.To = "[email protected]" objEmail.Subject = "Password of the Day" objEmail.Textbody = "Todays password is " &StrPW&". " objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/sendusing") = 2 objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserver") = _ "smtp.wcu.edu" objEmail.Configuration.Fields.Item _ ("http://schemas.microsoft.com/cdo/configuration/smtpserverport") = 25 objEmail.Configuration.Fields.Update objEmail.Send ===================================================== =====================================================
mac_shinobi Posted June 4, 2009 Posted June 4, 2009 Was just about to suggest the password reset tool from WiseSoft - Resources for IT Professionals ( registration is free ) and once logged in you can easily download and install it and as long as the user(s) have delegated rights to reset passwords then it should work fine.
maniac Posted June 4, 2009 Posted June 4, 2009 If your usernames meet the required pattern, you can use my easy password reset tool - there's no setting up to do, just needs .NET installed and the 'account manager' priviledge to be allocated to the user in Active Directory. (Unfortunitely development has ground to a hault on account of the fact I managed to loose the source code!) http://www.edugeek.net/forums/windows/23952-easy-password-reset-software.html Mike.
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