Questions tagged [windows-defender]

Use with Windows Security which was formally called Windows Defender Security Center

References:
Help protect my device with Windows Security

Related tag:
Windows-Security

125 questions
20
votes
3 answers

Windows Defender Antivirus scan from C# [AccessViolation exception]

We are writing a code to do on-demand scan of a file from C# using Windows Defender APIs. [DllImport(@"C:\Program Files\Windows Defender\MpClient.dll")] public static extern int WDStatus(out bool pfEnabled); …
mlg
  • 1,112
  • 12
  • 30
16
votes
2 answers

Android Development which folders to exclude for windows defender?

I excluded the follwing folders in windows defender, but the "Antimalware Service executable" is still using a lot of cpu. C:\Program Files\Android\Android…
Robin Dijkhof
  • 15,817
  • 9
  • 50
  • 93
15
votes
4 answers

How to permanently disable Windows Defender Real Time Protection with GPO?

I like to disable Windows Defender Real Time Protection via GPO on Windows 10 Pro. When I configure GPO like this: Real-Time Protection is shown as off: However after a reboot the Protection is magically enabled again: GPO settings have not…
joe-jeff
  • 474
  • 1
  • 4
  • 22
14
votes
5 answers

Windows Defender - Add exclusion folder programmatically

I was checking out different keyloggers for research purposes and stumbled upon Refog: https://www.refog.com/keylogger/ This program could catch a lot of system events, but what really caught my attention was something else. The program created a…
Ogglas
  • 38,157
  • 20
  • 203
  • 266
12
votes
1 answer

Windows Defender Antivirus API

Reading the documentation of the windows defender API, for example in MpManagerOpen Function: https://msdn.microsoft.com/en-us/library/windows/desktop/dn920115(v=vs.85).aspx I see that the required include file is MpClient.h. However I couldn't…
macro_controller
  • 1,209
  • 1
  • 11
  • 24
10
votes
4 answers

Windows Defender Real Time Protection Service slowing down Visual Studio etc

Since past two months or so I have been observing a strange phenomenon with the Real Time Protection Service that comes bundled in as a part of Windows Defender on Windows 10. When this service is set to ON Visual Studio builds take an…
Nikhil
  • 3,206
  • 1
  • 21
  • 36
7
votes
0 answers

Bypass restrictions of enabled Folder Access Control of Windows Defender

I've got an application written with C# which is installed via InnoSetup. With enabled Controlled Folder Access of Windows 10's Defender, the setup fails to create a desktop icon (showing the message PersistFile::Save failed, code 0x80070002) --…
7
votes
4 answers

Antivirus False positive in my VBA Excel Macro

I just ran into an even more annoying problem. Suddenly windows defender started to flag one of my excel files containing VBA macro code(on download from a browser) as being a virus. The specific virus being logged…
David Rogers
  • 2,284
  • 2
  • 30
  • 68
5
votes
5 answers

create-react-app RangeError: Maximum call stack size exceededat Object.mkdirSync

Today I tried to create new react app using (create-react-app app-name) in CMD and this error appeared : PS C:\Users\ahmed\Desktop\My File\New Folder\New Folder JS\New Folder> create-react-app…
Ahmed
  • 141
  • 1
  • 8
5
votes
0 answers

Determine why a program is blocked by Windows Defender SmartScreen

I have installed the Komodo IDE and now I like to activate my license by running file Komodo-IDE-8-Windows-SC92********.exe but it is blocked by my Windows Defender: Windows protected your PC Windows Defender SmartScreen prevented an unrecognized…
5
votes
1 answer

Powershell Set-MpPreference -DisableRealtimeMonitoring $true not working correctly

I must warn you I don't use powershell much. I am trying to turn off windows defender real time protection via powershell I found the command Set-MpPreference -DisableRealtimeMonitoring $true and tried it in admin privileges only to get…
4
votes
0 answers

Why does Windows Defender detect compiled C executables as viruses?

I'm using Visual Studio 2019 (Community Edition). I've never had an issue when compiling C++ code. I simply get the final executable and I'm able to run it without a problem. Recently I've decided to learn C and this is the C program that I'm…
3
votes
5 answers

FIleSystemWatcher IOException

I have a Windows Service that monitors a folder for new files and runs a process. However, the service crashes every time I drop files into the monitored folder. Here is the Exception I am receiving: Application: Framework Version: v4.0.30319…
Matt
  • 1,210
  • 3
  • 21
  • 34
3
votes
0 answers

Compiling with MinGW gcc Makes windows defender suspect of virus

This never happened to me before, but today I compiled a program with MinGW gcc and windows defender thought that the executable was a torjan, more specifically…
3
votes
2 answers

Detect when Controlled Folder Access is active

On Win10, the "anti-ransomware" feature Controlled Folder Access impedes accessing non-whitelisted softwares to certain folders. Is there a way (API) to know if that feature is in place when you get an error in some file operation?, so far I could…
tru7
  • 4,617
  • 2
  • 28
  • 50
1
2 3
8 9