Skip to content

Commit 02f81c3

Browse files
fix last standards
1 parent ff33992 commit 02f81c3

7 files changed

+12
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function Invoke-CIPPStandardEnableCustomerLockbox {
6464
}
6565

6666
if ($Settings.report -eq $true) {
67-
Set-StandardsCompareField -FieldName 'CustomerLockboxEnabled' -FieldValue $CustomerLockboxStatus -Tenant $tenant
67+
Set-StandardsCompareField -FieldName 'standards.CustomerLockboxEnabled' -FieldValue $CustomerLockboxStatus -Tenant $tenant
6868
Add-CIPPBPAField -FieldName 'CustomerLockboxEnabled' -FieldValue $CustomerLockboxStatus -StoreAs bool -Tenant $tenant
6969
}
7070
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ function Invoke-CIPPStandardEnableLitigationHold {
8181
if ($Settings.report -eq $true) {
8282
$filtered = $MailboxesNoLitHold | Select-Object -Property UserPrincipalName
8383
$state = $filtered ? $true : $MailboxesNoLitHold
84-
Set-CIPPStandardsCompareField -FieldName 'standards.EnableLitHold' -FieldValue $state -Tenant $Tenant
84+
Set-CIPPStandardsCompareField -FieldName 'standards.EnableLitigationHold' -FieldValue $state -Tenant $Tenant
8585
Add-CIPPBPAField -FieldName 'EnableLitHold' -FieldValue $filtered -StoreAs json -Tenant $Tenant
8686
}
8787
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ function Invoke-CIPPStandardEnableOnlineArchiving {
7979

8080
if ($Settings.report -eq $true) {
8181
$filtered = $MailboxesNoArchive | Select-Object -Property UserPrincipalName, ArchiveGuid
82+
$stateReport = $filtered ? $true : $filtered
83+
Set-CIPPStandardsCompareField -FieldName 'standards.EnableOnlineArchiving' -FieldValue $stateReport -TenantFilter $Tenant
8284
Add-CIPPBPAField -FieldName 'EnableOnlineArchiving' -FieldValue $filtered -StoreAs json -Tenant $Tenant
8385
}
8486
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ function Invoke-CIPPStandardPerUserMFA {
5252
}
5353
}
5454
if ($Settings.report -eq $true) {
55+
$State = $UsersWithoutMFA ? $UsersWithoutMFA : $true
56+
Set-CIPPStandardsCompareField -FieldName 'standards.PerUserMFA' -FieldValue $State -Tenant $tenant
5557
Add-CIPPBPAField -FieldName 'LegacyMFAUsers' -FieldValue $UsersWithoutMFA -StoreAs json -Tenant $tenant
5658
}
5759
}

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ function Invoke-CIPPStandardSPEmailAttestation {
3434
param($Tenant, $Settings)
3535

3636
$CurrentState = Get-CIPPSPOTenant -TenantFilter $Tenant |
37-
Select-Object -Property EmailAttestationReAuthDays, EmailAttestationRequired
37+
Select-Object -Property EmailAttestationReAuthDays, EmailAttestationRequired
3838

3939
$StateIsCorrect = ($CurrentState.EmailAttestationReAuthDays -eq $Settings.Days) -and
4040
($CurrentState.EmailAttestationRequired -eq $true)
@@ -73,6 +73,6 @@ function Invoke-CIPPStandardSPEmailAttestation {
7373
} else {
7474
$FieldValue = $CurrentState
7575
}
76-
Add-CIPPBPAField -FieldName 'standards.SPEmailAttestation' -FieldValue $FieldValue -StoreAs bool -Tenant $Tenant
76+
Set-CIPPStandardsCompareField -FieldName 'standards.SPEmailAttestation' -FieldValue $FieldValue -TenantFilter $Tenant
7777
}
7878
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ function Invoke-CIPPStandardSPExternalUserExpiration {
3333
param($Tenant, $Settings)
3434

3535
$CurrentState = Get-CIPPSPOTenant -TenantFilter $Tenant |
36-
Select-Object -Property ExternalUserExpireInDays, ExternalUserExpirationRequired
36+
Select-Object -Property ExternalUserExpireInDays, ExternalUserExpirationRequired
3737

3838
$StateIsCorrect = ($CurrentState.ExternalUserExpireInDays -eq $Settings.Days) -and
3939
($CurrentState.ExternalUserExpirationRequired -eq $true)
@@ -72,6 +72,7 @@ function Invoke-CIPPStandardSPExternalUserExpiration {
7272
} else {
7373
$FieldValue = $CurrentState
7474
}
75+
Set-CIPPStandardsCompareField -FieldName 'standards.SPExternalUserExpiration' -FieldValue $FieldValue -TenantFilter $Tenant
7576
Add-CIPPBPAField -FieldName 'standards.SPExternalUserExpiration' -FieldValue $FieldValue -StoreAs bool -Tenant $Tenant
7677
}
7778
}

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,13 @@ function Invoke-CIPPStandardunmanagedSync {
5353
if ($CurrentInfo.isUnmanagedSyncAppForTenantRestricted -eq $true) {
5454
Write-LogMessage -API 'Standards' -tenant $tenant -message 'Sync for unmanaged devices is disabled' -sev Info
5555
} else {
56-
Write-StandardsAlert -message "Sync for unmanaged devices is not disabled" -object $CurrentInfo -tenant $tenant -standardName 'unmanagedSync' -standardId $Settings.standardId
56+
Write-StandardsAlert -message 'Sync for unmanaged devices is not disabled' -object $CurrentInfo -tenant $tenant -standardName 'unmanagedSync' -standardId $Settings.standardId
5757
Write-LogMessage -API 'Standards' -tenant $tenant -message 'Sync for unmanaged devices is not disabled' -sev Info
5858
}
5959
}
6060

6161
if ($Settings.report -eq $true) {
62+
Set-CIPPStandardsCompareField -FieldName 'standards.unmanagedSync' -FieldValue $CurrentInfo.isUnmanagedSyncAppForTenantRestricted -Tenant $tenant
6263
Add-CIPPBPAField -FieldName 'unmanagedSync' -FieldValue $CurrentInfo.isUnmanagedSyncAppForTenantRestricted -StoreAs bool -Tenant $tenant
6364
}
6465
}

0 commit comments

Comments
 (0)