Re: Group password reset

From: Far2Busy (
Date: 10/11/05

Date: Tue, 11 Oct 2005 06:59:14 +0200

copy and paste the following code into Notepad. Edit the LDAP path for
the OU you wish to target. Run script with cscript.

adpath = "LDAP://cn=users,dc=xyz,dc=com"
set oContainer = getobject(adpath)
oContainer.filter = array("user")
For each oUser in oContainer
WScript.echo "Setting ""User must change password on next logon"" for
" &
oUser.pwdLastSet = 0

Far2Busy's Profile:
View this thread: