Police have detained 117 people and conducted nearly 65,000 checks at schools amid a nationwide security crackdown.