Skip to content

Commit 5a94acf

Browse files
committed
standard tweaks
1 parent 5dce65b commit 5a94acf

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardIntuneComplianceSettings.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ function Invoke-CIPPStandardIntuneComplianceSettings {
3131

3232
param($Tenant, $Settings)
3333

34-
$CurrentState = New-GraphGetRequest -Uri 'https://graph.microsoft.com/beta/deviceManagement/settings' -tenantid $Tenant
34+
$CurrentState = New-GraphGetRequest -Uri 'https://graph.microsoft.com/beta/deviceManagement/settings' -tenantid $Tenant | Select-Object secureByDefault, deviceComplianceCheckinThresholdDays
3535

3636
if ($null -eq $Settings.deviceComplianceCheckinThresholdDays) { $Settings.deviceComplianceCheckinThresholdDays = $CurrentState.deviceComplianceCheckinThresholdDays }
3737
$SecureByDefault = [bool]($Settings.secureByDefault.value ? $Settings.secureByDefault.value : $Settings.secureByDefault)

Modules/CIPPCore/Public/Standards/Invoke-CIPPStandardSpamFilterPolicy.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function Invoke-CIPPStandardSpamFilterPolicy {
7373
($CurrentState.PhishQuarantineTag -eq $PhishQuarantineTag) -and
7474
($CurrentState.HighConfidencePhishAction -eq 'Quarantine') -and
7575
($CurrentState.HighConfidencePhishQuarantineTag -eq $HighConfidencePhishQuarantineTag) -and
76-
($CurrentState.BulkThreshold -eq $Settings.BulkThreshold) -and
76+
($CurrentState.BulkThreshold -eq [int]$Settings.BulkThreshold) -and
7777
($CurrentState.QuarantineRetentionPeriod -eq 30) -and
7878
($CurrentState.IncreaseScoreWithImageLinks -eq $IncreaseScoreWithImageLinks) -and
7979
($CurrentState.IncreaseScoreWithNumericIps -eq 'On') -and
@@ -126,7 +126,7 @@ function Invoke-CIPPStandardSpamFilterPolicy {
126126
PhishQuarantineTag = $PhishQuarantineTag
127127
HighConfidencePhishAction = 'Quarantine'
128128
HighConfidencePhishQuarantineTag = $HighConfidencePhishQuarantineTag
129-
BulkThreshold = $Settings.BulkThreshold
129+
BulkThreshold = [int]$Settings.BulkThreshold
130130
QuarantineRetentionPeriod = 30
131131
IncreaseScoreWithImageLinks = $IncreaseScoreWithImageLinks
132132
IncreaseScoreWithNumericIps = 'On'

0 commit comments

Comments
 (0)