View Full Version : Autogenerate passwords


=?Utf-8?B?VHJvbmQ=?=
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

Vivek Ahuja
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" 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



=?Utf-8?B?VHJvbmQ=?=
Thank You,
However this script seem to generate for one user
Is it possible to change for all users in that OU at once? Maybe import form Excel or something
Thank Yo

Trond

Vivek Ahuja
Well if i was a programmer i think i could have opend a excel or a csv file
and did this...
else i would rahter use copy paste and replace and generate a VBS file for
all users...u need to run this weekly with new passwords...so just find and
replace?
or use this script in a loop...

any programmers willing to help...
"Trond" wrote in message
news:E93D31E6-DBA2-4C27-BC00-23C6BBBC7203@microsoft.com...
> Thank You,
> However this script seem to generate for one user?
> Is it possible to change for all users in that OU at once? Maybe import
form Excel or something?
> Thank You
>
> Trond