如果您阻止 Windows 通知防病毒软件扫描文件附件,本文将对您很方便。您可以在本地组策略编辑器(Local Group Policy Editor)和注册表编辑器的帮助下禁用或关闭此功能。
现在通常不(NOT)应该这样做,但如果你有这样做的理由,那么 Windows 10 为你提供了一种方法来做到这一点。
每当文件到达计算机的电子邮件服务器时,Windows都会ping 已安装的防病毒软件以自动扫描文件。无论您有Microsoft Defender 还是任何其他防病毒软件(antivirus),它们都会发生这种情况。Windows 执行此任务以确保用户的安全,因为勒索软件通过文件附件进行攻击。但是,如果您正在执行一些测试,并且想要在Windows 10上禁用此安全功能,那么本文将指导您完成这些步骤。
(Stop Windows)在打开附件时阻止 Windows通知防病毒软件
Windows 10 提供组策略(Group Policy)设置,打开附件时通知(Notify)防病毒程序,当您打开电子邮件附件时停止扫描它们。要防止Windows通知防病毒软件扫描文件附件,请按照以下步骤操作 -
- 按Win+R打开运行提示。
- 输入gpedit.msc并点击Enter按钮。
- 导航到用户配置(User Configuration)中的附件管理器(Attachment Manager)。
- 打开附件时(Notify antivirus programs when opening attachments)双击通知防病毒程序。
- 选择禁用(Disable)。
- 单击应用(Apply)并确定(OK)。
按Win+R 打开运行(Run)提示。然后,键入gpedit.msc
并按 Enter 按钮以在您的计算机上打开本地组策略编辑器(Local Group Policy Editor)。打开后,导航到这个路径-
User Configuration > Administrative Templates > Windows Components > Attachment Manager
在右侧,您将获得一个名为“ 打开附件时通知防病毒程序(Notify antivirus programs when opening attachments)”的设置。默认情况下,它设置为 未配置(Not Configured)。选择 禁用 (Disable )选项,然后分别单击 应用 (Apply )和 确定 (OK )按钮。
此策略设置允许您管理通知已注册防病毒程序的行为。如果注册了多个程序,它们都会收到通知。如果注册的防病毒程序已经在文件到达计算机的电子邮件服务器时执行访问检查或扫描文件,那么额外的调用将是多余的。
如果启用此策略设置,Windows会告诉注册的防病毒程序在用户打开文件附件时扫描文件。如果防病毒程序失败,将阻止打开附件。
如果禁用此策略设置,Windows在打开文件附件时不会调用已注册的防病毒程序。
如果您不配置此策略设置,Windows在打开文件附件时不会调用已注册的防病毒程序。
之后,Windows将不会通知已注册的防病毒软件扫描任何文件附件。如果您想重新启用此功能,请在本地组策略编辑器(Local Group Policy Editor)中导航相同的路径,然后选择 未配置(Not Configured)选项。
防止 Windows 在您使用注册表打开和发送电子邮件附件时通知防病毒软件(Registry)
要防止Windows通知防病毒软件使用注册表编辑器(Registry Editor)扫描文件附件,请按照以下步骤操作 -
- 按Win+R打开运行提示。
- 键入regedit并点击Enter按钮。
- 在 UAC 提示中单击Yes按钮。(Yes)
- 导航到HKEY_CURRENT_USER中的策略(Policies)。
- 右键单击Policies > New > Key。
- 将其命名为Attachments。
- 右键单击Attachments > New > DWORD (32-bit) Value。
- 将其命名为ScanWithAntiVirus。
- 将数值数据设置为1。
- 单击确定(OK)。
不要忘记首先,创建一个系统还原点 并 备份所有注册表文件(backup all Registry files)。
首先,您将在计算机上打开注册表编辑器(Registry Editor)。为此,按 Win+R 打开运行提示符,键入regedit
,然后按 Enter 按钮。如果出现UAC提示,请单击 是 (Yes )按钮。打开注册表编辑器(Registry Editor)后,导航到以下路径 -
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments
如果 Attachments 键不存在,请右键单击 Policies,然后选择 New > Key。之后,将其命名为 Attachments。但是,如果您已经可以 在Policies中看到(Policies)Attachments 键 ,则可以跳过此步骤。
然后,右键单击 Attachments,然后选择 New > DWORD (32-bit) Value。
将其命名为ScanWithAntiVirus。之后,双击ScanWithAntiVirus,将Value数据设置为 1,然后单击 OK 按钮保存更改。
如果您将数值数据设置为 1,它将禁用文件附件扫描功能。但是,如果您想重新启用它,您可以删除此 Attachments 键或将ScanWithAntiVirus的(ScanWithAntiVirus)Value数据设置为 3。为此,打开注册表编辑器(Registry Editor),导航与上述相同的路径,双击ScanWithAntiVirus,并进行相应的设置。
就这样!希望能帮助到你。
Stop Windows from notifying your antivirus, when opening attachments
This article will be handy for you if you prevent Windows from notifying antivirus to scan file attachment. You can disablе or turn off this functionality with the Local Group Policy Editor and Registry Editor’s helр.
Now one should normally NOT be doing this, but if you have your reasons for doing it, then Windows 10 provides you with a way to do it.
Whenever a file arrives on the computer’s email server, Windows pings the installed antivirus to scan the file automatically. Whether you have Microsoft Defender or any other antivirus, it happens with all of them. Windows performs this task to ensure the user’s security since ransomware attacks through file attachments. However, if you are carrying out some tests, and you want to disable this security functionality on Windows 10, then this article will guide you through the steps.
Stop Windows from notifying antivirus, when opening attachments
Windows 10 provides a Group Policy setting, Notify antivirus programs when opening attachments, that stops scanning of email attachments when you open them. To prevent Windows from notifying antivirus to scan file attachment, follow these steps-
- Press Win+R to open the Run prompt.
- Type gpedit.msc and hit the Enter button.
- Navigate to Attachment Manager in the User Configuration.
- Double-click on Notify antivirus programs when opening attachments.
- Select Disable.
- Click the Apply and OK.
Press Win+R to open the Run prompt. Then, type gpedit.msc
and hit the Enter button to open the Local Group Policy Editor on your computer. After opening, navigate to this path-
User Configuration > Administrative Templates > Windows Components > Attachment Manager
On the right-hand side, you will get a setting called Notify antivirus programs when opening attachments. By default, it is set to Not Configured. Select the Disable option, and click on the Apply and OK buttons, respectively.
This policy setting allows you to manage the behavior for notifying registered antivirus programs. If multiple programs are registered, they will all be notified. If the registered antivirus program already performs on-access checks or scans files as they arrive on the computer’s email server, additional calls would be redundant.
If you enable this policy setting, Windows tells the registered antivirus program to scan the file when a user opens a file attachment. If the antivirus program fails, the attachment is blocked from being opened.
If you disable this policy setting, Windows does not call the registered antivirus programs when file attachments are opened.
If you do not configure this policy setting, Windows does not call the registered antivirus programs when file attachments are opened.
After that, Windows won’t notify the registered antivirus to scan any file attachment. In case you want to re-enable this feature, navigate the same path in the Local Group Policy Editor, and select the Not Configured option.
Prevent Windows from notifying antivirus when you open and email attachment using Registry
To prevent Windows from notifying antivirus to scan file attachment using Registry Editor, follow these steps-
- Press Win+R to open the Run prompt.
- Type regedit and hit the Enter button.
- Click on the Yes button in the UAC prompt.
- Navigate to Policies in the HKEY_CURRENT_USER.
- Right-click on Policies > New > Key.
- Name it as Attachments.
- Right-click on Attachments > New > DWORD (32-bit) Value.
- Name it as ScanWithAntiVirus.
- Set the Value data as 1.
- Click OK.
Don’t forget to first, create a System Restore point and backup all Registry files.
At first, you will open the Registry Editor on your computer. For that, press Win+R to open the Run prompt, type regedit
, and hit the Enter button. If the UAC prompt appears, click the Yes button. Once the Registry Editor is opened, navigate to the following path-
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Policies\Attachments
If the Attachments key is not there, right-click on Policies, and select New > Key. Following that, name it as Attachments. However, if you can already see the Attachments key inside Policies, you can skip this step.
Then, right-click on Attachments, and select New > DWORD (32-bit) Value.
Name it as ScanWithAntiVirus. After that, double-click on the ScanWithAntiVirus, set the Value data as 1, and click the OK button to save the change.
If you set the Value data as 1, it will disable the file attachment scanning functionality. However, if you want to re-enable it, you can delete this Attachments key or set the Value data of ScanWithAntiVirus to 3. For that, open the Registry Editor, navigate the same path as mentioned above, double-click on ScanWithAntiVirus, and set it accordingly.
That’s all! Hope it helps.