You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: defender-endpoint/schedule-antivirus-scan-crontab.md
+16-13Lines changed: 16 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: How to schedule scans with Microsoft Defender for Endpoint (Linux)
2
+
title: Schedule an antivirus scan using crontab with Microsoft Defender for Endpoint on Linux
3
3
description: Learn how to schedule an automatic scanning time for Microsoft Defender for Endpoint (Linux) to better protect your organization's assets.
4
4
ms.service: defender-endpoint
5
5
ms.author: deniseb
@@ -15,17 +15,17 @@ ms.collection:
15
15
ms.topic: conceptual
16
16
ms.subservice: linux
17
17
search.appverid: met150
18
-
ms.date: 10/11/2024
18
+
ms.date: 03/24/2025
19
19
---
20
20
21
-
# Schedule scans with Microsoft Defender for Endpoint (Linux)
21
+
# Schedule an antivirus scan using crontab with Microsoft Defender for Endpoint on Linux
22
22
23
23
**Applies to:**
24
24
25
25
- Microsoft Defender for Endpoint for servers
26
26
- Microsoft Defender for Servers Plan 1 or Plan 2
27
27
28
-
To run a scan for Linux, see [Supported Commands](linux-resources.md#supported-commands).
28
+
To run a scan for Linux, see [Supported commands](linux-resources.md#supported-commands).
29
29
30
30
For Linux (and Unix), you can use a tool called **crontab** (similar to Task Scheduler in Windows) to run scheduled tasks.
31
31
@@ -41,9 +41,9 @@ For Linux (and Unix), you can use a tool called **crontab** (similar to Task Sch
41
41
> -`America/Chicago`
42
42
> -`America/Denver`
43
43
44
-
## To set the Cron job
44
+
## Set the Cron job
45
45
46
-
Use the following commands:
46
+
To set the cron job, use the commands in this article.
47
47
48
48
### Backup crontab entries
49
49
@@ -72,9 +72,7 @@ You might see:
72
72
0 * * * * /etc/opt/microsoft/mdatp/logrorate.sh
73
73
```
74
74
75
-
Press "Insert"
76
-
77
-
Add the following entries:
75
+
Press **Insert**, and then add the following entries:
78
76
79
77
```bash
80
78
CRON_TZ=America/Los_Angeles
@@ -85,9 +83,7 @@ CRON_TZ=America/Los_Angeles
85
83
> [!NOTE]
86
84
> In this example, we have set it to 00 minutes, 2 a.m. (hour in 24 hour format), any day of the month, any month, on Saturdays. Meaning it will run Saturdays at 2:00 a.m. Pacific (UTC -8).
87
85
88
-
Press "Esc"
89
-
90
-
Type "`:wq`" without the double quotes.
86
+
Press **Esc**, and then type "`:wq`" without the double quotes.
91
87
92
88
> [!NOTE]
93
89
> w == write, q == quit
@@ -134,7 +130,7 @@ For more information, see [Chef documentation](https://docs.chef.io/resources/cr
134
130
Resource Type: cron
135
131
```
136
132
137
-
See <https://puppet.com/docs/puppet/5.5/types/cron.html> for more information.
133
+
For more information, see [Puppet documentation: Resource Type: cron](https://puppet.com/docs/puppet/5.5/types/cron.html).
138
134
139
135
**Automating with Puppet: Cron jobs and scheduled tasks**
140
136
@@ -231,4 +227,11 @@ crontab -u username -r
231
227
| | | | +—- day of week (values: 0 - 6) (Sunday=0 or 7) (special characters: , \- \* / L W C) <br>
232
228
| | | | |*****command to be executed
233
229
```
230
+
231
+
## See also
232
+
233
+
-[Microsoft Defender for Endpoint on Linux](microsoft-defender-endpoint-linux.md)
234
+
-[Prerequisites for Microsoft Defender for Endpoint on Linux](mde-linux-prerequisites.md)
235
+
-[Configure security settings and policies for Microsoft Defender for Endpoint on Linux](linux-preferences.md)
236
+
234
237
[!INCLUDE [Microsoft Defender for Endpoint Tech Community](../includes/defender-mde-techcommunity.md)]
0 commit comments