Mandatory counselling never works.   Attendance may be mandatory, but learning/change is optional.

Mandatory medication would be more effective, as many mentally ill people don't think they are sick and refuse to take their meds.  But mandatory medication is also viewed by many as an infringement on human rights (as if their subsequent violence on the innocent isn't an infringement on rights in itself).