mirror of
https://github.com/MicrosoftDocs/windows-itpro-docs.git
synced 2025-05-13 13:57:22 +00:00
Update WDAC multiple policies
Give better example powershell command
This commit is contained in:
parent
df427631a3
commit
26064136b4
@ -50,16 +50,16 @@ Note that multiple policies will not work on pre-1903 systems.
|
|||||||
|
|
||||||
### Allow Multiple Policies
|
### Allow Multiple Policies
|
||||||
|
|
||||||
In order to allow multiple policies to exist and take effect on a single system, policies must be created using the new Multiple Policy Format. The "MultiplePolicyFormat" switch in New-CIPolicy results in 1) random GUIDs being generated for the policy ID and 2) the policy type being specified as base.
|
In order to allow multiple policies to exist and take effect on a single system, policies must be created using the new Multiple Policy Format. The "MultiplePolicyFormat" switch in [New-CIPolicy](https://docs.microsoft.com/powershell/module/configci/new-cipolicy?view=win10-ps) results in 1) random GUIDs being generated for the policy ID and 2) the policy type being specified as base. The below is an example of creating a new policy in the multiple policy format.
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
New-CIPolicy -MultiplePolicyFormat -foo –bar
|
New-CIPolicy -MultiplePolicyFormat -ScanPath '.\temp\' -UserPEs -FilePath ".\policy.xml" -Level Publisher -Fallback Hash
|
||||||
```
|
```
|
||||||
|
|
||||||
Optionally, you can choose to make the new base policy supplementable (allow supplemental policies).
|
Optionally, you can choose to make the new base policy supplementable (allow supplemental policies).
|
||||||
|
|
||||||
```powershell
|
```powershell
|
||||||
Set-RuleOption -FilePath <string> Enabled:Allow Supplemental Policies
|
Set-RuleOption -FilePath <string> -Option 17
|
||||||
```
|
```
|
||||||
|
|
||||||
For signed base policies that are being made supplementable, you need to ensure that supplemental signers are defined. Use the "Supplemental" switch in Add-SignerRule to provide supplemental signers.
|
For signed base policies that are being made supplementable, you need to ensure that supplemental signers are defined. Use the "Supplemental" switch in Add-SignerRule to provide supplemental signers.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user