Hi Oliver,

First of all the receptionist needs to be delegated the rights to reset
users passwords, as well as being made aware of the consequences (local
credential cache of the users f.e.).

To reset the password you can use commands like "net user username password
/domain" or you can use AD-Tools like ADUC, "dsquery user domainroot -name
whatever | dsmod -pwd newpass -mustchangepwd yes", or you can create your
own script which searches for the user and changes password after asking for
approval. Www.microsoft.com/technet/scriptcenter provides the examples you
have to glue together for this.

Gruesse - Sincerely, 

Ulf B. Simon-Weidner 

  MVP-Book "Windows XP - Die Expertentipps": http://tinyurl.com/44zcz
  Weblog: http://msmvps.org/UlfBSimonWeidner
  Website: http://www.windowsserverfaq.org
  Profile:
http://mvp.support.microsoft.com/profile=35E388DE-4885-4308-B489-F2F1214C811
D   

 

|-----Original Message-----
|From: [EMAIL PROTECTED] 
|[mailto:[EMAIL PROTECTED] On Behalf Of 
|Oliver Marshall
|Sent: Wednesday, April 12, 2006 1:56 AM
|To: [email protected]
|Subject: [ActiveDir] Changing a users password
|
|Hi,
|
|I want to create a script that will allow a user here to 
|change the password of any other user. 
|
|I have found several examples, most based on the examples on 
|the MS site. Thing is, they all depend on knowing the 
|Distinguished Name of the user, and the poor old receptionist 
|wont have a clue what that is.
|
|Can anyone help me with a script that will change the password 
|of a user just knowing the username of the user ? At the least 
|I'm after some code to find the DN of a user from their 
|username, and I can then use that with the code I already have 
|(I think).
|
|
|Thanks
|
|Olly
|List info   : http://www.activedir.org/List.aspx
|List FAQ    : http://www.activedir.org/ListFAQ.aspx
|List archive: 
|http://www.mail-archive.com/activedir%40mail.activedir.org/

List info   : http://www.activedir.org/List.aspx
List FAQ    : http://www.activedir.org/ListFAQ.aspx
List archive: http://www.mail-archive.com/activedir%40mail.activedir.org/

Reply via email to