We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bbcb33 commit 3e081d5Copy full SHA for 3e081d5
Modules/CIPPCore/Public/New-CippStandardsDriftClone.ps1
@@ -24,7 +24,8 @@ function New-CippStandardsDriftClone {
24
if ($actions | Where-Object { $_.value -eq 'remediate' }) {
25
$prop.Value | Add-Member -MemberType NoteProperty -Name 'autoRemediate' -Value $true -Force
26
}
27
- $prop.Value.action = @(@{ 'label' = 'Report'; 'value' = 'Report' })
+ # Set action to Report using add-member to avoid issues with readonly arrays
28
+ $prop.Value | Add-Member -MemberType NoteProperty -Name 'action' -Value @(@{ 'label' = 'Report'; 'value' = 'Report' }) -Force
29
30
31
0 commit comments