Ok here goes. If you're not comfortable with command line scripting you shouldn't try this.
First you need to get the id of your 'students' cos.
Code:
/opt/zimbra/bin/zmprov gc students | grep zimbraId
this should return the ID which will look like this 8c2168da-e087-4ea9-a996-aa72f57bd478
Next execute this command
Code:
zmprov gaa -v | grep -e uid: -e zimbraCOSId | grep -B1 8c2168da-e087-4ea9-a996-aa72f57bd478 | grep uid: | awk '{print $2}' > students.txt That may take a while to run since you have a lot of users. It will leave you with a students.txt file which should have all the students in it. verify by visual inspection maybe
Now finally
Code:
for i in `cat students.txt`
do
/opt/zimbra/bin/zmprov ma $i zimbraHideInGal TRUE
done
that should work