Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
When Microsoft Defender Antivirus finds a suspicious file, it can prevent the file from running while it queries the Microsoft Defender Antivirus cloud service.
By default, Block at first sight blocks the file for 10 seconds while waiting for a cloud determination. You can add up to 50 seconds, for a maximum time-out period of 60 seconds. Before you begin, review the prerequisites for this feature.
Prerequisites
Before you specify an extended time-out period, enable Block at first sight, cloud protection, and automatic sample submission. Keep Microsoft Defender Antivirus up to date on the devices.
Supported operating systems
The following operating systems support this feature:
Windows
Windows Server
Note
Windows Server supports this Microsoft Defender Antivirus setting when you configure it directly by using Microsoft Configuration Manager, Group Policy, or PowerShell. The Microsoft Intune and Microsoft Defender portal procedures in this article can manage supported Windows Server versions through Defender for Endpoint security settings management.
To onboard and manage servers through Defender for Endpoint, you need an eligible server license. If your organization accesses Defender for Endpoint only through Defender for Servers, you also need at least one active Defender for Endpoint user subscription license to use security settings management. For more information, see Server plans and Licensing and subscriptions for security settings management.
Specify the extended time-out period using Microsoft Intune
Microsoft Intune is the recommended tool for configuring and distributing Defender for Endpoint features to devices. However, Intune is a separate product that isn't part of Defender for Endpoint, and it isn't included in all subscriptions. To use Intune, you need a subscription that includes it, or you can buy it separately as a standalone subscription or add-on. If you don't have Intune, you can use any of the other methods in this article. For more information, see Microsoft Intune licensing.
To specify the cloud block time-out period in Microsoft Intune, use an endpoint security Antivirus policy. For detailed instructions, see Create endpoint security policies or Modify existing policies (links open new tabs in the Intune documentation).
When you create the policy, use these specific settings:
- Policy type: Go to Manage > Antivirus on the Endpoint security | Overview page at https://intune.microsoft.com/#view/Microsoft_Intune_Workflows/SecurityManagementMenu/~/overview, and then select
Create policy. - Platform: Select Windows.
- Profile: Select Microsoft Defender Antivirus.
When you create or modify the policy, use these specific settings on the Configuration settings tab:
- Slide the toggle for Cloud Extended Timeout to
Configured. - In the box that appears, specify a value from 0 to 50 seconds. The value is added to the default 10-second time-out period. For example, enter
50for a total time-out period of 60 seconds.
Specify the extended time-out period using the Microsoft Defender portal
If your organization manages endpoint security policies in the Microsoft Defender portal, you specify the cloud block time-out period with the same endpoint security policies that Intune uses.
For detailed instructions, see Create an endpoint security policy or Edit an endpoint security policy (links open new tabs).
When you create the policy on the Windows policies tab of the Endpoint security policies page in the Defender portal at https://security.microsoft.com/policy-inventory?osPlatform=Windows, use these specific settings:
- Select platform: Select Windows.
- Select template: Select Microsoft Defender Antivirus.
When you create or modify the policy, use these specific settings on the Configuration settings tab:
- Slide the toggle for Cloud Extended Timeout to
Configured. - In the box that appears, specify a value from 0 to 50 seconds. The value is added to the default 10-second time-out period. For example, enter
50for a total time-out period of 60 seconds.
Specify the extended time-out period using Microsoft Configuration Manager
For instructions to create and deploy an antimalware policy, see Endpoint Protection antimalware policies in Configuration Manager.
In the Cloud Protection Service settings of the antimalware policy, configure Allow extended cloud check to block and scan for up to (seconds). Enter a value from 0 to 50. The value is added to the default 10-second time-out period.
Specify the extended time-out period using Group Policy
You can use Group Policy to specify an extended time-out period for cloud checks.
In Centralized Group Policy, open the Group Policy Management Console (GPMC) on your Group Policy management computer.
In the GPMC console tree, expand Group Policy Objects in the forest and domain containing the GPO you want to edit.
Right-click the GPO, and then select Edit.
In the Group Policy Management Editor, go to Computer configuration > Administrative templates > Windows components > Microsoft Defender Antivirus > MpEngine.
Note
Group Policy paths before Windows 10, version 2004 (May 2020) might use Windows Defender Antivirus instead of Microsoft Defender Antivirus. Both names refer to the same policy location.
In the details pane of MpEngine, open the Configure extended cloud check setting. To open the setting, use any of the following methods:
- Double-click the setting.
- Right-click the setting, and then select Edit.
- Select the setting, and then select Action > Edit.
In the setting window that opens, select Enabled.
In the Options section, for Specify the extended cloud check time in seconds, enter the extra time that Defender Antivirus prevents the file from running while waiting for a cloud determination. Enter a value from
0to50. The value is added to the default 10-second time-out period.Select OK.
Tip
You can also configure Group Policy locally on individual devices by using the Local Group Policy Editor (gpedit.msc). Navigate to the same path: Computer configuration > Administrative templates > Windows components > Microsoft Defender Antivirus > MpEngine.
Specify the extended time-out period using PowerShell
In an elevated PowerShell session (a PowerShell window you opened by selecting Run as administrator), replace <0-50> with an integer from 0 to 50, and then run the following command:
Set-MpPreference -CloudExtendedTimeout <0-50>
For example, the following command adds 50 seconds to the default 10-second period, for a total of 60 seconds:
Set-MpPreference -CloudExtendedTimeout 50
For detailed syntax and parameter information, see Set-MpPreference.
Related content
For information about Microsoft Defender Antivirus and Defender for Endpoint on other platforms, see:
- Set preferences for Microsoft Defender for Endpoint on macOS
- Microsoft Defender for Endpoint on Mac
- macOS Antivirus policy settings for Microsoft Defender Antivirus for Intune
- Set preferences for Microsoft Defender for Endpoint on Linux
- Microsoft Defender for Endpoint on Linux
- Configure Defender for Endpoint on Android features
- Configure Microsoft Defender for Endpoint on iOS features