I'm not able to run my c programs locally on vs code.

Agastya Dubey 0 Reputation points
2026-11-03T15:25:00.18+00:00

Code Integrity determined that a process (\Device\HarddiskVolume3\Windows\System32\cmd.exe) attempted to load \Device\HarddiskVolume3\Users\DELL\OneDrive\Documents\EduDiagnose\EduDiagnose\Code.c\C.exe that did not meet the Enterprise signing level requirements or violated code integrity policy (Policy ID:{0283ac0f-fff1-49ae-ada1-8a933130cad6}).

Windows for home | Windows 11 | Security and privacy
0 comments No comments

2 answers

Sort by: Most helpful
  1. Francisco Montilla 31,820 Reputation points Independent Advisor
    2026-11-03T17:06:51.6233333+00:00

    Hello,

    That error means Windows security policies are blocking your locally compiled exe from running because it doesn't have a trusted enterprise digital signature. Since you are compiling this code yourself it obviously won't have one.

    I need a bit more info to figure out exactly what is enforcing this block so we can get your code running.

    Is this a personal laptop or one provided by a school or workplace? Do you happen to know if Smart App Control is turned on in your security settings? Lastly did you link any school or work accounts to this PC recently in the Windows settings?

    Let me know and we will go from there.

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-11-03T15:25:47.6366667+00:00

    Smart App Control is blocking the newly compiled unsigned C.exe; for local C development, turn Smart App Control off in Windows Security or sign every executable with a trusted code-signing certificate.

    The policy ID in the message—{[GUID]}—is the Windows 11 VerifiedAndReputableDesktop policy used when Smart App Control is turned on.^1^

    Turn off Smart App Control

    1. Open Settings.
    2. Go to Privacy & security → Windows Security → App & browser control.
    3. Select Smart App Control settings.
    4. Set Smart App Control to Off.
    5. Rebuild the program in VS Code, then run the newly generated .exe.

    Turning this off reduces protection against unsigned or untrusted applications. Microsoft documents that Smart App Control has no per-application bypass: the available choices are to disable it or use a valid signature. Recent Windows updates allow it to be enabled again through Windows Security.^2^

    Do not use registry modifications or replace Code Integrity policy files for ordinary development. Those procedures are intended for controlled testing and can compromise the protection Smart App Control provides.^3^

    Confirm the result if it remains blocked

    Open:

    Event Viewer → Applications and Services Logs → Microsoft → Windows → CodeIntegrity → Operational

    Then rebuild and run the program. Smart App Control enforcement blocks are recorded as Event ID 3077. Check whether the event names the newly generated C.exe or another build tool or executable.^3^

    If the event still shows the same Smart App Control policy after switching it off:

    1. Restart Windows.
    2. Delete only the old build output, such as C.exe.
    3. Recompile the source to produce a fresh executable.
    4. Run the new file.

    Moving the project out of OneDrive may simplify build paths, but it does not resolve this specific signing-policy block. The event identifies the executable as failing the enforced trust requirement, not the folder as inaccessible.

    Alternative: keep Smart App Control enabled

    If Smart App Control must remain enabled, sign the generated executable with a valid certificate from a trusted certificate authority. Smart App Control first uses its security service to assess an application; when it cannot establish trust that way, an unsigned or invalidly signed application is blocked.^2^

    That option is generally suited to software being distributed to other users, rather than temporary executables produced repeatedly while learning or debugging C.

    If this is a school- or organization-managed computer and the setting cannot be changed, contact its administrator. Do not attempt to remove the Code Integrity policy manually.


    References

    1. Inbox App Control policies
    2. Smart App Control Frequently Asked Questions
    3. Test your app's signature with Smart App Control
    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.