Visual Studio Code and its Installer is blocked by administrator when trying to open as admin

0

When trying to open as administrator I get ‘An administrator blocked this app’ error without any way to cancel it. Running it without administrator privileges works fine. No other application has this problem either.

enter image description here

Yesterday I started doing Microsoft PowerShell learning module (https://learn.microsoft.com/en-us/training/paths/get-started-windows-powershell/) and everything was working fine. I might have changed something with PowerShell and I’m not sure what. The only thing I remember is changing Execution Policy to some values, I think it’s back to what it’s supposed to be and it didn’t help.

Additionally, the PowerShell Extension Terminal doesn’t allow me to type anything into it and it won’t run any pre-written ps1 scripts.

At first I only had this problem in app, which is why I though reinstalling it might help, but it didn’t then I’ve noticed that installer has the same problem