Re: Group password reset

From: Far2Busy (Far2Busy.1wq4dy_at_no-mx.forums.yourdomain.com.au)
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.name
oUser.pwdLastSet = 0
oUser.setinfo
Next

-- 
Far2Busy
------------------------------------------------------------------------
Far2Busy's Profile: http://www.highdots.com/forums/m1012
View this thread: http://www.highdots.com/forums/t2999861