Thirteen students and one staff member were banned from campus during a visit by the Queen.