Re: Autogenerate passwords

From: Vivek Ahuja (vivekahuja_at_hotmail.com)
Date: 04/30/04


Date: Fri, 30 Apr 2004 15:22:28 +0530

try the following script :

To Change Password
Set objUser = GetObject ("LDAP://cn=username,ou=container,dc=domain,dc=com")
objUser.ChangePassword "i5A2sj*!", "jl3R86df"

To Set Password
Set objUser = GetObject
("LDAP://cn=username,ou=containername,dc=domainname,dc=com")
objUser.SetPassword "i5A2sj*!"

"Trond" <trond.karlsen@nannestad.kommune.no> wrote in message
news:E6BDAEE6-9BDF-4673-B1A9-BDBEFD893DB7@microsoft.com...
> I need to change all the pwds in one OU every week, This is a OU
containing excam accounts. Is there any way of automaticly generate pwds for
200 users and have a output file so i can give the account and pwd to the
students when they arrive. For security reasons the pwd need to be unique
for each user, and they should not be able to change it.
> Please advise.
>
> Trond