Skip to content
Open
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
f85646a
Test-MtCisPasswordExpiry: Only Check domains with isVerified: true to…
blindzero May 9, 2026
fb6ed9e
Merge branch 'main' into main
blindzero May 10, 2026
4871295
Merge branch 'main' into main
SamErde May 11, 2026
3afbde9
Merge branch 'main' into main
SamErde May 12, 2026
c1daf37
Adding failsaife mesures for PasswordValidityPeriodInDays being a string
blindzero May 16, 2026
3e71511
added comments after testing for clarification and improved verbosity
blindzero May 16, 2026
9da1ba0
Merge branch 'main' into main
blindzero May 16, 2026
3d201cc
Potential fix for pull request finding
SamErde May 18, 2026
171ff02
Merge branch 'main' into main
SamErde May 18, 2026
3d998b4
Merge branch 'main' into main
blindzero May 20, 2026
19ef57d
added skip result for unmanaged or unverified domains
blindzero May 20, 2026
83fef75
Potential fix for pull request finding
SamErde May 22, 2026
8ba4cab
Fixing result table headers to match output
blindzero May 22, 2026
7ab7f04
fix verbose output grammar
blindzero May 22, 2026
8f005fe
fix result markdown output to clarify managed and verified domains
blindzero May 22, 2026
7471c47
Merge branch 'main' of https://github.com/blindzero/maester
blindzero May 22, 2026
fc62f4b
Merge branch 'main' into main
blindzero May 22, 2026
009252d
Merge branch 'maester365:main' into main
blindzero May 23, 2026
faf8e23
Merge branch 'maester365:main' into main
blindzero Aug 3, 2026
001e122
docs: updated function doc for MT.1020
blindzero Aug 9, 2026
49b734a
docs: precised documentation of MT.1020 according to review recommend…
blindzero Aug 9, 2026
c31eadd
Merge branch 'main' into fix/2112-mt1020-documentation
blindzero Aug 9, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,14 +1,17 @@
function Test-MtCaExclusionForDirectorySyncAccount {
<#
.Synopsis
Checks if all Conditional Access policies scoped to all cloud apps and all users exclude the directory synchronization accounts
Checks if all Conditional Access policies scoped to all cloud apps and all users exclude the directory synchronization accounts for Microsoft Entra Connect..

.Description
The directory synchronization accounts are used to synchronize the on-premises directory with Entra ID.
The directory synchronization accounts are used to synchronize the on-premises directory with Microsoft Entra Connect.
These accounts should be excluded from all Conditional Access policies scoped to all cloud apps and all users.
Entra ID connect does not support multifactor authentication.
Restrict access with these accounts to trusted networks.

With latest update, Microsoft Entra Connect does support modern authentication.
As environments are just moving to modern authentication, we keep this test.
Mute this test, when the tenant has migrated every directory synchronization account to Application-Based Authentication with the ABA service principal taking over sync, so no directory sync user users remain. If this paragraph refers to that capability, include the supported minimum version: Microsoft Entra Connect 2.5.76.0 or later.

.Example
Test-MtCaExclusionForDirectorySyncAccount

Expand Down Expand Up @@ -57,7 +60,7 @@
# account. Service principals are not subject to Conditional Access policies and do not need to be
# excluded from them.
$userSyncMembers = @($Members | Where-Object { $_.'@odata.type' -ne '#microsoft.graph.servicePrincipal' })
$spSyncMembers = @($Members | Where-Object { $_.'@odata.type' -eq '#microsoft.graph.servicePrincipal' })
$spSyncMembers = @($Members | Where-Object { $_.'@odata.type' -eq '#microsoft.graph.servicePrincipal' })

if ( $userSyncMembers.Count -eq 0 -and $spSyncMembers.Count -gt 0 ) {
$spNames = ( $spSyncMembers | Where-Object { $_.displayName } | ForEach-Object { $_.displayName } ) -join ', '
Expand Down
Loading