Hi
I've never tried this, but I'd do something like this:
Code:
/opt/zimbra/bin/zmprov -l getAllAccounts | while read LINE
do
/opt/zimbra/bin/zmprov modifyAccount $LINE zimbraPasswordMustChange TRUE
done Since the getAllAccounts command retrieves all accounts (except the galsyncs), you might want to filter those out (such as the ham, spam and wiki accounts).
If you also want to change the passwords to something temporary, you could do something like this:
Code:
/opt/zimbra/bin/zmprov -l getAllAccounts | while read LINE
do
/opt/zimbra/bin/zmprov setPassword $LINE newPassword
/opt/zimbra/bin/zmprov modifyAccount $LINE zimbraPasswordMustChange TRUE
done Where newPassword would be the new password. Beware though as all the users would get the same password!