1
0 Comments

I own a Windows 10 Pro computer (version 10.0.18362) and I’ve made an executable file named test.exe. Even though the executable runs successfully on other Windows machines, including other Windows 10 Pro machines, it does not run on my computer. There is no indication of any error or output when I try to run it from a cmd terminal. After attempting to run the executable, a new prompt appears below with no information in between, which is confusing. I’m curious as to why Windows is refusing to run the executable and not displaying any errors. How can I “unblock” the file and make it work?

I attempted to resolve this problem by searching on Google, and came across some suggestions. These included turning off Defender and firewall, modifying Group Policy Settings and running cmd as administrator, and adjusting the registry. Unfortunately, none of these suggestions were helpful.

Are there any other solutions that I can try?

test.exe was created by running pyinstaller --onefile test.py on the following (trivial) Python 3.7 program:

print("Success")

Once more, the identical executable file operates smoothly on other Windows computers. There are no firewalls, antivirus programs, defenders or shields in operation, and I am running the correct executable in the correct folder.

Additionally, I have discovered another piece of evidence: the executable works when run from a USB flash drive, but fails when executed from the C: drive.

What configurations or procedures could be the cause of this problem?

Askify Moderator Edited question May 1, 2023