19

I'm working in Visual Studio 2019 on Windows 10 and from time to time I've been getting this notification:

Security scan required

I don't use any 3rd-party antivirus or antimalware programs, so I gather it's coming from Windows Defender. The trouble is..

  • It doesn't tell me what item.
  • There's no apparent way to take any action, whether I approve this or not.
  • I've already tried excluding my code folder from Windows Defender, but that's made no difference so far.

How can I find out what item it's so concerned about? And what am I supposed to do with this notification?

3 Answers3

17

I'd look in the eventlog to find out what the problem is.

The path would be: Event Viewer > Applications and Services logs > Microsoft > Windows > Windows Defender > Operational

LPChip
  • 66,193
1

Following on from LPChip's helpful answer, I wanted to open this folder at will from a shortcut.

It turns out Event Viewer does have a command line syntax:

eventvwr /l:[log file path]

or

eventvwr /c:[channel name]

Right-clicking and accessing the Properties of a node in Event Viewer offers the Full Name (pass to /c:) and Log path (pass to /l:), which can be passed to the command line to open Event viewer on this node so I end up with this command for my shortcut:

C:\Windows\System32\eventvwr.exe /c:"Microsoft-Windows-Windows Defender/Operational"
0

Are you sure it´s VS related? If not, and you´re using Office365, this could be the Office365 ATP. If this is the case, the information on this link will give you initial information on setting it up.