Skip to content

Commit e40736e

Browse files
committed
save current edits
1 parent cc09043 commit e40736e

5 files changed

Lines changed: 22 additions & 14 deletions

File tree

memdocs/intune/protect/compliance-custom-json.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords:
77
author: brenduns
88
ms.author: brenduns
99
manager: dougeby
10-
ms.date: 12/08/2021
10+
ms.date: 10/19/2022
1111
ms.topic: conceptual
1212
ms.service: microsoft-intune
1313
ms.subservice: protect

memdocs/intune/protect/compliance-custom-script.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
---
22
# required metadata
33

4-
title: Create a PowerShell script to use for discover of custom compliance settings in Microsoft Intune
5-
description: Create the PowerShell script that runs discovery on devices that receive device compliance policies for custom settings in Intune.
4+
title: Create a discovery scripts for custom compliance policy in Microsoft Intune
5+
description: Create scripts for Linux or Windows devices to discover the settings you define as custom compliance settings for Microsoft Intune.
66
keywords:
77
author: brenduns
88
ms.author: brenduns
99
manager: dougeby
10-
ms.date: 11/16/2021
10+
ms.date: 10/19/2022
1111
ms.topic: conceptual
1212
ms.service: microsoft-intune
1313
ms.subservice: protect
@@ -27,16 +27,24 @@ ms.custom: intune-azure
2727
ms.collection: M365-identity-device-management
2828
---
2929

30-
# Custom PowerShell scripts for discovery
30+
# Custom compliance discovery scripts for Microsoft Intune
3131

32-
Before you can use [custom settings for compliance](../protect/compliance-use-custom-settings.md) with Intune, you must define a PowerShell script for discovery of custom compliance settings on devices.
32+
Before you can use [custom settings for compliance](../protect/compliance-use-custom-settings.md) with Microsoft Intune, you must define a script for discovery of custom compliance settings on devices. The script you use depends on the platform:
3333

34-
The discovery script:
34+
- Linux devices, use a POSIX-compliant shell script
35+
- Windows devices use a PowerShell script
3536

36-
- Is added to Intune before you create a compliance policy. After it's added, it will be available to select when you create a compliance policy with custom settings.
37-
- Runs on a device that receives the compliance policy. The script evaluates the conditions of the JSON file you upload to the same policy.
38-
- Identifies one or more settings, as defined in the JSON, and returns a list of discovered values for those settings. A single script can be assigned to each policy, and supports discovery of multiple settings.
39-
- Must be compressed to output results in one line. For example: `$hash = @{ ModelName = "Dell"; BiosVersion = "1.24"; TPMChipPresent = $true}`
37+
The script deploys to devices as part of your custom compliance policies and runs to discover the settings that are defined by the JSON file that you also provide through custom compliance policy.
38+
39+
All discovery scripts:
40+
41+
- Are added to Intune before you create a compliance policy. After being added, scripts are available to select when you create a compliance policy with custom settings.
42+
- Run on a device that receives the compliance policy. The script evaluates the conditions of the JSON file you upload when creating a custom compliance policy.
43+
- Identify one or more settings, as defined in the JSON, and return a list of discovered values for those settings. A single script can be assigned to each policy, and supports discovery of multiple settings.
44+
45+
In addition, the PowerShell script for Windows:
46+
47+
- Must be compressed to output results in a single line. For example: `$hash = @{ ModelName = "Dell"; BiosVersion = "1.24"; TPMChipPresent = $true}`
4048
- Must include the following line at the end of the script: `return $hash | ConvertTo-Json -Compress`
4149

4250
## Sample discovery script

memdocs/intune/protect/compliance-policy-monitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords:
77
author: brenduns
88
ms.author: brenduns
99
manager: dougeby
10-
ms.date: 10/17/2022
10+
ms.date: 10/19/2022
1111
ms.topic: how-to
1212
ms.service: microsoft-intune
1313
ms.subservice: protect

memdocs/intune/protect/compliance-use-custom-settings.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords:
77
author: brenduns
88
ms.author: brenduns
99
manager: dougeby
10-
ms.date: 10/17/2022
10+
ms.date: 10/19/2022
1111
ms.topic: conceptual
1212
ms.service: microsoft-intune
1313
ms.subservice: protect

memdocs/intune/protect/device-compliance-get-started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ keywords:
77
author: brenduns
88
ms.author: brenduns
99
manager: dougeby
10-
ms.date: 10/17/2022
10+
ms.date: 10/19/2022
1111
ms.topic: overview
1212
ms.service: microsoft-intune
1313
ms.subservice: protect

0 commit comments

Comments
 (0)