|
2 | 2 | title: Create custom configuration items |
3 | 3 | titleSuffix: Configuration Manager |
4 | 4 | description: Manage settings for Windows computers and servers with a custom configuration item for Windows desktops and servers |
5 | | -ms.date: 01/04/2021 |
| 5 | +ms.date: 03/10/2022 |
6 | 6 | ms.prod: configuration-manager |
7 | 7 | ms.technology: configmgr-compliance |
8 | 8 | ms.topic: conceptual |
@@ -220,7 +220,9 @@ The value returned by the script is used to assess the compliance of the global |
220 | 220 |
|
221 | 221 | - **Discovery script**: Select **Add Script**, and enter or browse to a script. This script is used to find the value. You can use Windows PowerShell, VBScript, or Microsoft JScript scripts. |
222 | 222 |
|
223 | | -- **Remediation script (optional)**: Select **Add Script**, and enter or browse to a script. This script is used to remediate non-compliant setting values. You can use Windows PowerShell, VBScript, or Microsoft JScript scripts. |
| 223 | +- **Remediation script (optional)**: Select **Add Script**, and enter or browse to a script. This script is used to remediate non-compliant setting values. You can use Windows PowerShell, VBScript, or Microsoft JScript scripts. |
| 224 | + > [!IMPORTANT] |
| 225 | + > - To properly report a remediation failure, scripts need to throw exceptions rather than a nonzero exit code. <!--8760430--> |
224 | 226 |
|
225 | 227 | - **Run scripts by using the logged on user credentials**: If you enable this option, the script runs on client computers that use the credentials of the signed-in user. |
226 | 228 |
|
@@ -319,7 +321,9 @@ Compliance rules specify the conditions that define the compliance of a configur |
319 | 321 | - **WQL query** |
320 | 322 |
|
321 | 323 | > [!IMPORTANT] |
322 | | - > You can only remediate noncompliant rules when the rule operator is set to **Equals**. |
| 324 | + > - To properly report a remediation failure, scripts need to throw exceptions rather than a nonzero exit code. <!--8760430--> |
| 325 | + > - You can only remediate noncompliant rules when the rule operator is set to **Equals**. |
| 326 | +
|
323 | 327 |
|
324 | 328 | - **Report noncompliance if this setting instance is not found**: If this setting isn't found on client computers, enable this option for the configuration item to report noncompliance. |
325 | 329 |
|
|
0 commit comments