Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Windows: prevent Windows Defender from scanning my project's files
Forum Updated to NodeBB v4.3 + New Features

Windows: prevent Windows Defender from scanning my project's files

Scheduled Pinned Locked Moved Unsolved General and Desktop
4 Posts 3 Posters 852 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    agarny
    wrote on last edited by agarny
    #1

    Hi,

    No doubt that many of you have come across that problem, i.e. build your Qt application on Windows and then realise that a fair amount of your CPU gets used by Windows Defender to scan your project's files.

    Well, yes, I know that I can add exclusions to Windows Defender, as explained here by Microsoft. So, I first added the folder for my project, but it didn't make any difference.

    Then, I came across another Microsoft page where they use Group Policies, but again to no avail.

    Finally, I came across this PowerShell script, to which I added the folders to my project and my copy of CMake, Ninja and clcache, but again to no avail.

    By no avail, I mean that if I build my project, then straightaway I see the Antimalware Service Executable process kicking in and using anywhere between 15% and 70% of my CPU.

    FWIW, I am using the very latest version of Window 10, i.e. 21H1, together with Visual Studio 2017 with CMake, Ninja, clcache and Qt 5.12.11.

    Cheers, Alan.

    1 Reply Last reply
    0
    • M Offline
      M Offline
      mchinand
      wrote on last edited by
      #2

      I would use this with caution as you are creating a potential security hole on your system. Configure and validate exclusions for Microsoft Defender Antivirus scans

      1 Reply Last reply
      0
      • A Offline
        A Offline
        agarny
        wrote on last edited by
        #3

        Thanks a lot for the link @mchinand. (Yes, I know and fully appreciate that this can create potential security holes.)

        1 Reply Last reply
        0
        • fcarneyF Offline
          fcarneyF Offline
          fcarney
          wrote on last edited by
          #4

          Do it on the Qt install directory too. Otherwise when you update Qt it will take FOREVER.

          C++ is a perfectly valid school of magic.

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved