Skip to content

Commit 4b03c2c

Browse files
committed
Added BasePolicyToSupplementPath, SupplementsBasePolicyID, ResetPolicyID parameters to Set-CIPolicyIDInfo
Completing Task 27512181 Updated Set-CIPolicyIdInfo
1 parent bf7519c commit 4b03c2c

File tree

1 file changed

+54
-1
lines changed

1 file changed

+54
-1
lines changed

docset/winserver2022-ps/configci/Set-CIPolicyIdInfo.md

Lines changed: 54 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Modifies the name and ID of a Code Integrity policy.
1616
## SYNTAX
1717

1818
```
19-
Set-CIPolicyIdInfo [-FilePath] <String> [-PolicyName <String>] [-PolicyId <String>] [<CommonParameters>]
19+
Set-CIPolicyIdInfo [-FilePath] <String> [-PolicyName <String>] [-PolicyId <String>] [-BasePolicyToSupplementPath <string>] [-SupplementsBasePolicyID <String>] [-ResetPolicyID] [<CommonParameters>]
2020
```
2121

2222
## DESCRIPTION
@@ -40,6 +40,13 @@ PS C:\> Set-CIPolicyIdInfo -FilePath ".\Policy03.xml" -PolicyName "CIPolicy77"
4040

4141
This command modifies only the policy name for the policy stored in the Policy03.xml file.
4242

43+
### Example 3: Specify the base policy ID of a supplemental policy
44+
```
45+
PS C:\> Set-CIPolicyIdInfo -FilePath ".\Supplemental_Policy.xml" -BasePolicyToSupplementPath ".\Base_Policy.xml"
46+
```
47+
48+
This command will extract the PolicyID field from Base_Policy.xml file and modify the BasePolicyID field in the Supplemental_Policy.xml file.
49+
4350
## PARAMETERS
4451

4552
### -FilePath
@@ -88,6 +95,52 @@ Accept pipeline input: False
8895
Accept wildcard characters: False
8996
```
9097
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: String
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+
91144
### CommonParameters
92145
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).
93146

0 commit comments

Comments
 (0)