Archived from groups: microsoft.public.win2000.advanced_server (More info?)
You could use dsquery user to query for the users and then pipe the info
into dsmod to change their passwords:
i.e to change the password for all users starting with the letter u in the
OU=test,DC=contoso,DC=com domain and force them to change password at next
logon:
c:>dsquery user ou=test,dc=contoso,dc=com -name u* | dsmod user -pwd test
-mustchpwd yes
HTH
Srikanth N
This posting is provided "AS IS" with no warranties, and confers no rights.