Hi @IBN
In Teams we don’t have any direct settings to prevent users to attached .exe file.
Therefore, we would like to recommend you that kindly give your valuable vote with your comment on this feature via Teams UserVoice link. I have created in Teams UserVoice. Many features and services are built on the basis of customers' feedback, vote or comment via UserVoice service and Microsoft is always focus on customers' feedback.
Thanks for your understanding and patience!
If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.