How can I avoid "Windows protected your PC" problem when my friends try to use my executables?

Viewed 1842

When my friends try to open the executable resulting from building my project (i.e. a ".exe"), they take the error "Windows protected your PC".
Both my c++ and python projects cannot be executed on my friends' computers because of the error.
How can I allow it?

3 Answers

This isn't an error; this is a design choice by Microsoft to protect those of us who are not tech-savvy (i.e. potentially your friends). And although it is a little bit annoying, it is not actually a roadblock.

When you click more info, enter image description here

you will be met with

enter image description here

and thus be able to run the program by clicking "Run anyway", despite Microsoft's warning, because you know for a fact that the program is safe - or in this case, your friends know that the program is safe, because you probably don't have any malicious intent.

... Or do you?

Its due to windows built-in security feature. Try not to send .exe but send your code and your friend could compile it at their own. Windows just not authenticating it, as the source is not verified, according to your friend OS.

Related