File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ function Set-CIPPQuarantinePolicy {
85
85
}
86
86
" QuarantinePolicy" {
87
87
$cmdParams = @ {
88
- EndUserQuarantinePermissionsValue = Convert-QuarantinePermissionsValue - InputObject $EndUserQuarantinePermissions
88
+ EndUserQuarantinePermissionsValue = Convert-QuarantinePermissionsValue @EndUserQuarantinePermissions - ErrorAction Stop
89
89
ESNEnabled = $ESNEnabled
90
90
IncludeMessagesFromBlockedSenderAddress = $IncludeMessagesFromBlockedSenderAddress
91
91
}
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ function Invoke-CIPPStandardQuarantineTemplate {
64
64
if ($Policy.displayName.value -in $CurrentPolicies.Name ) {
65
65
# Get the current policy and convert EndUserQuarantinePermissions from string to hashtable for compare
66
66
$ExistingPolicy = $CurrentPolicies | Where-Object - Property Name -eq $Policy.displayName.value
67
- $ExistingPolicyEndUserQuarantinePermissions = Convert-QuarantinePermissionsValue - InputObject $ExistingPolicy . EndUserQuarantinePermissions - ErrorAction Stop
67
+ $ExistingPolicyEndUserQuarantinePermissions = Convert-QuarantinePermissionsValue @ EndUserQuarantinePermissions - ErrorAction Stop
68
68
69
69
# Compare the current policy
70
70
$StateIsCorrect = ($ExistingPolicy.Name -eq $Policy.displayName.value ) -and
You can’t perform that action at this time.
0 commit comments