by Peter Bowen.
If you have all the user names in a CSV, then you can do some manipulation to produce SQL script. I do this on a weekly basis, and produce something similar to:
UPDATE mdl_user SET suspended=1 WHERE
username=jackross
OR username=johnstone
OR username=garyjones
You then run this directly on the SQL server, and the list of users is now suspended.
I would suggest that if you do not know how to run SQL against your database, than the above is not for you... :D
Kind Regards
Peter