Skip to content

Commit 958c96a

Browse files
authored
Update Set-CIPolicySetting.md
Fix typo in example 1. The reason is that supplying "$True" actually results in a typo in the XML file where "True" is capitalized -- this doesn't fit the XML specifications of code integrity policies, and actually leads to an error. (See PowerShell/PowerShell#21286 for a discussion on this). This change makes example 1 conform to other Microsoft documentation which uses a correct example of this cmdlet, see: https://learn.microsoft.com/en-us/windows/security/application-security/application-control/app-control-for-business/design/allow-com-object-registration-in-appcontrol-policy
1 parent 384fcd7 commit 958c96a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docset/winserver2025-ps/ConfigCI/Set-CIPolicySetting.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Secure Settings are queried by Windows APIs to set security behaviors.
3636

3737
### Example 1: Set the Code Integrity policy
3838
```powershell
39-
Set-CIPolicySetting -FilePath C:\Policies\WDAC_policy.xml -Key "{12345678-9abc-def0-1234-56789abcdef0}" -Provider WSH -Value $True -ValueName EnterpriseDefinedClsId -ValueType Boolean
39+
Set-CIPolicySetting -FilePath C:\Policies\WDAC_policy.xml -Key "{12345678-9abc-def0-1234-56789abcdef0}" -Provider WSH -Value true -ValueName EnterpriseDefinedClsId -ValueType Boolean
4040
```
4141

4242
This command sets the Code Integrity policy to allow for the specified **Provider**, **Key** and **ValueName**.

0 commit comments

Comments
 (0)