How can I block teamviewer
You can do this by adding GPO Software Restriction Policies.
For blocking TW best will be Hash or Path rule.
Regards,
Łukasz