You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -43,18 +43,18 @@ If you specify the **Audit** parameter, this cmdlet scans the Code Integrity Aud
43
43
44
44
## EXAMPLES
45
45
46
-
### Example 1: Create a policy
46
+
### Example 1: Create a policy in multiple policy format
47
47
```
48
-
The first command scans for user-mode executables (applications) along with kernel-mode binaries such as drivers and creates rules at the Publisher level. The command creates a policy and stores it in the file that is named Policy.xml. This command specifies the **OmitPaths** parameter to exclude files in the temp\ConfigCITestBinaries folder. The command specifies the **NoScript** parameter so that it gets information for only PE files.
The first command scans for user-mode executables (applications) along with kernel-mode binaries such as drivers and creates rules at the Publisher level. The command creates a policy in multiple policy format and stores it in the file that is named Policy.xml. This command specifies the **OmitPaths** parameter to exclude files in the temp\ConfigCITestBinaries folder. The command specifies the **NoScript** parameter so that it gets information for only portable executable files (PE files).
Indicates that this cmdlet should create a policy in multiple policy format as opposed to a single policy format.
546
+
Refer to [Create WDAC policies in Multiple Policy Format](https://docs.microsoft.com/windows/security/threat-protection/windows-defender-application-control/deploy-multiple-windows-defender-application-control-policies#creating-wdac-policies-in-multiple-policy-format) for the difference between the policy formats.
547
+
548
+
```yaml
549
+
Type: SwitchParameter
550
+
Parameter Sets: (All)
551
+
Aliases: None
552
+
553
+
Required: False
554
+
Position: Named
555
+
Default value: None
556
+
Accept pipeline input: False
557
+
Accept wildcard characters: False
558
+
```
559
+
542
560
### CommonParameters
543
561
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
This set of commands finds a packaged application matching the specified name and generates an allow rule for the packaged application and its dependencies.
242
+
195
243
196
244
## PARAMETERS
197
245
@@ -293,6 +341,21 @@ Accept pipeline input: False
293
341
Accept wildcard characters: False
294
342
```
295
343
344
+
### -Package
345
+
Specifies the packaged app (MSIX/Appx) to base the rule.
This command will extract the PolicyID field from the Base_Policy.xml file and modify the BasePolicyID field in the Supplemental_Policy.xml file.
49
+
43
50
## PARAMETERS
44
51
45
52
### -FilePath
@@ -88,6 +95,52 @@ Accept pipeline input: False
88
95
Accept wildcard characters: False
89
96
```
90
97
98
+
### -BasePolicyToSupplementPath
99
+
Specifies the path to a base policy to get the value for the **BasePolicyID** property for a supplemental policy.
100
+
101
+
```yaml
102
+
Type: String
103
+
Parameter Sets: (All)
104
+
Aliases: None
105
+
106
+
Required: False
107
+
Position: Named
108
+
Default value: None
109
+
Accept pipeline input: False
110
+
Accept wildcard characters: False
111
+
```
112
+
113
+
### -SupplementsBasePolicyID
114
+
Specifies the value for the **BasePolicyID** property for a supplemental policy.
115
+
116
+
```yaml
117
+
Type: Guid
118
+
Parameter Sets: (All)
119
+
Aliases: None
120
+
121
+
Required: False
122
+
Position: Named
123
+
Default value: None
124
+
Accept pipeline input: False
125
+
Accept wildcard characters: False
126
+
```
127
+
128
+
### -ResetPolicyID
129
+
Resets both the PolicyID and BasePolicyID values. This parameter will convert a single-policy format policy to multi-policy format.
130
+
131
+
```yaml
132
+
Type: SwitchParameter
133
+
Parameter Sets: (All)
134
+
Aliases: None
135
+
136
+
Required: False
137
+
Position: Named
138
+
Default value: None
139
+
Accept pipeline input: False
140
+
Accept wildcard characters: False
141
+
```
142
+
143
+
91
144
### CommonParameters
92
145
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see [about_CommonParameters](https://go.microsoft.com/fwlink/?LinkID=113216).
93
146
@@ -100,4 +153,3 @@ This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable
0 commit comments