• RSS
  • Twitter
  • FaceBook

Security Forums

Log in

FAQ | Usergroups | Profile | Register | RSS | Posting Guidelines | Recent Posts

script to change users passwords

Users browsing this topic:0 Security Fans, 0 Stealth Security Fans
Registered Security Fans: None
Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Exchange 2000 // 2003 // 2007 & Active Directory

View previous topic :: View next topic  
Author Message
Battousai
Spammer
Spammer


Joined: 27 Jul 2004
Posts: 0
Location: Doncaster, UK

Offline

PostPosted: Tue Sep 28, 2010 3:04 pm    Post subject: script to change users passwords Reply with quote

Hi everyone,

i'm looking for a bit of help getting a script that would allow a teacher to reset a students password after a bit of searching all i can find are things similar to this:-

=====================
Set objUser = GetObject("LDAP://cn=KenMyer,ou=Finance,dc=fabrikam,dc=com")
objUser.SetPassword("i5A2sj*!")
=====================

but that only works for a named account, what i'm after is a script that ask for a username and then resets it to a known password and flags it to be changed next time that user logs on, i know next to nothing about scripting VBS but will post as i learn...
Back to top
View user's profile Send private message Visit poster's website
Battousai
Spammer
Spammer


Joined: 27 Jul 2004
Posts: 0
Location: Doncaster, UK

Offline

PostPosted: Tue Sep 28, 2010 3:43 pm    Post subject: Reply with quote

found this website that has some great scripts you can just download and use. http://www.scriptinganswers.com/vault/AD%20Administration/

best one i found is below:-

http://www.scriptinganswers.com/vault/AD%20Administration/Change%20AD%20pwd%20and%20set%20'change%20pwd%20at%20next%20logon'.zip

all credit to Christian Sawyer, i had no input as this is WAY over my head!!
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   

Post new topic   Reply to topic   Printer-friendly version    Networking/Security Forums Index -> Exchange 2000 // 2003 // 2007 & Active Directory All times are GMT + 2 Hours
Page 1 of 1


 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

Looking for more Windows Networking info?

Sign up to the WindowsNetworking.com Monthly Newsletter, written by Enterprise Security MVP Deb Shinder, containing news, the hottest tips, Networking links of the month and much more. Subscribe today and don't miss a thing!
View a sample newsletter.

Become a WindowsNetworking.com member!

Discuss your Windows Networking issues with thousands of other Windows Newtorking experts. Click here to join!

Community Area

Log in | Register

Readers' Choice

Which is your preferred data recovery solution?

Follow TechGenix on Twitter