Windows Security is built-in to Windows 10 and includes an antivirus program called Windows Defender Antivirus.
Windows Defender Antivirus helps protect your PC against malware (malicious software) like viruses, spyware, and other potentially unwanted software. Malware can infect your PC without your knowledge: it might install itself from an email message, when you connect to the Internet, or when you install certain apps using a USB flash drive, CD, DVD, or other removable media. Some malware can also be programmed to run at unexpected times, not only when it's installed.
You can configure the Scan files on the network group policy to enable or disable if network files will be scanned by Windows Defender Antivirus.
This tutorial will show you how to enable or disable Windows Defender Antivirus to scan files on the network in Windows 10.