Skip to content

Commit 54206e0

Browse files
Merge pull request #3260 from denisebmsft/docs-editor/schedule-antivirus-scan-cronta-1742836618
Update schedule-antivirus-scan-crontab.md
2 parents 10a8aec + e159606 commit 54206e0

File tree

1 file changed

+16
-13
lines changed

1 file changed

+16
-13
lines changed

defender-endpoint/schedule-antivirus-scan-crontab.md

Lines changed: 16 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
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
33
description: Learn how to schedule an automatic scanning time for Microsoft Defender for Endpoint (Linux) to better protect your organization's assets.
44
ms.service: defender-endpoint
55
ms.author: deniseb
@@ -15,17 +15,17 @@ ms.collection:
1515
ms.topic: conceptual
1616
ms.subservice: linux
1717
search.appverid: met150
18-
ms.date: 10/11/2024
18+
ms.date: 03/24/2025
1919
---
2020

21-
# Schedule scans with Microsoft Defender for Endpoint (Linux)
21+
# Schedule an antivirus scan using crontab with Microsoft Defender for Endpoint on Linux
2222

2323
**Applies to:**
2424

2525
- Microsoft Defender for Endpoint for servers
2626
- Microsoft Defender for Servers Plan 1 or Plan 2
2727

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).
2929

3030
For Linux (and Unix), you can use a tool called **crontab** (similar to Task Scheduler in Windows) to run scheduled tasks.
3131

@@ -41,9 +41,9 @@ For Linux (and Unix), you can use a tool called **crontab** (similar to Task Sch
4141
> - `America/Chicago`
4242
> - `America/Denver`
4343
44-
## To set the Cron job
44+
## Set the Cron job
4545

46-
Use the following commands:
46+
To set the cron job, use the commands in this article.
4747

4848
### Backup crontab entries
4949

@@ -72,9 +72,7 @@ You might see:
7272
0 * * * * /etc/opt/microsoft/mdatp/logrorate.sh
7373
```
7474

75-
Press "Insert"
76-
77-
Add the following entries:
75+
Press **Insert**, and then add the following entries:
7876

7977
```bash
8078
CRON_TZ=America/Los_Angeles
@@ -85,9 +83,7 @@ CRON_TZ=America/Los_Angeles
8583
> [!NOTE]
8684
> 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).
8785
88-
Press "Esc"
89-
90-
Type "`:wq`" without the double quotes.
86+
Press **Esc**, and then type "`:wq`" without the double quotes.
9187

9288
> [!NOTE]
9389
> w == write, q == quit
@@ -134,7 +130,7 @@ For more information, see [Chef documentation](https://docs.chef.io/resources/cr
134130
Resource Type: cron
135131
```
136132

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).
138134

139135
**Automating with Puppet: Cron jobs and scheduled tasks**
140136

@@ -231,4 +227,11 @@ crontab -u username -r
231227
| | | | +—- day of week (values: 0 - 6) (Sunday=0 or 7) (special characters: , \- \* / L W C) <br>
232228
| | | | |*****command to be executed
233229
```
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+
234237
[!INCLUDE [Microsoft Defender for Endpoint Tech Community](../includes/defender-mde-techcommunity.md)]

0 commit comments

Comments
 (0)